part of 'generated.dart';

class DeleteUserVariablesBuilder {
  String id;

  final FirebaseDataConnect _dataConnect;
  DeleteUserVariablesBuilder(this._dataConnect, {required  this.id,});
  Deserializer<DeleteUserData> dataDeserializer = (dynamic json)  => DeleteUserData.fromJson(jsonDecode(json));
  Serializer<DeleteUserVariables> varsSerializer = (DeleteUserVariables vars) => jsonEncode(vars.toJson());
  Future<OperationResult<DeleteUserData, DeleteUserVariables>> execute() {
    return ref().execute();
  }

  MutationRef<DeleteUserData, DeleteUserVariables> ref() {
    DeleteUserVariables vars= DeleteUserVariables(id: id,);
    return _dataConnect.mutation("DeleteUser", dataDeserializer, varsSerializer, vars);
  }
}

@immutable
class DeleteUserUserDelete {
  final String id;
  DeleteUserUserDelete.fromJson(dynamic json):
  
  id = nativeFromJson<String>(json['id']);
  @override
  bool operator ==(Object other) {
    if(identical(this, other)) {
      return true;
    }
    if(other.runtimeType != runtimeType) {
      return false;
    }

    final DeleteUserUserDelete otherTyped = other as DeleteUserUserDelete;
    return id == otherTyped.id;
    
  }
  @override
  int get hashCode => id.hashCode;
  

  Map<String, dynamic> toJson() {
    Map<String, dynamic> json = {};
    json['id'] = nativeToJson<String>(id);
    return json;
  }

  DeleteUserUserDelete({
    required this.id,
  });
}

@immutable
class DeleteUserData {
  final DeleteUserUserDelete? user_delete;
  DeleteUserData.fromJson(dynamic json):
  
  user_delete = json['user_delete'] == null ? null : DeleteUserUserDelete.fromJson(json['user_delete']);
  @override
  bool operator ==(Object other) {
    if(identical(this, other)) {
      return true;
    }
    if(other.runtimeType != runtimeType) {
      return false;
    }

    final DeleteUserData otherTyped = other as DeleteUserData;
    return user_delete == otherTyped.user_delete;
    
  }
  @override
  int get hashCode => user_delete.hashCode;
  

  Map<String, dynamic> toJson() {
    Map<String, dynamic> json = {};
    if (user_delete != null) {
      json['user_delete'] = user_delete!.toJson();
    }
    return json;
  }

  DeleteUserData({
    this.user_delete,
  });
}

@immutable
class DeleteUserVariables {
  final String id;
  @Deprecated('fromJson is deprecated for Variable classes as they are no longer required for deserialization.')
  DeleteUserVariables.fromJson(Map<String, dynamic> json):
  
  id = nativeFromJson<String>(json['id']);
  @override
  bool operator ==(Object other) {
    if(identical(this, other)) {
      return true;
    }
    if(other.runtimeType != runtimeType) {
      return false;
    }

    final DeleteUserVariables otherTyped = other as DeleteUserVariables;
    return id == otherTyped.id;
    
  }
  @override
  int get hashCode => id.hashCode;
  

  Map<String, dynamic> toJson() {
    Map<String, dynamic> json = {};
    json['id'] = nativeToJson<String>(id);
    return json;
  }

  DeleteUserVariables({
    required this.id,
  });
}

