part of 'generated.dart';

class DeleteTaskVariablesBuilder {
  String id;

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

  MutationRef<DeleteTaskData, DeleteTaskVariables> ref() {
    DeleteTaskVariables vars= DeleteTaskVariables(id: id,);
    return _dataConnect.mutation("deleteTask", dataDeserializer, varsSerializer, vars);
  }
}

@immutable
class DeleteTaskTaskDelete {
  final String id;
  DeleteTaskTaskDelete.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 DeleteTaskTaskDelete otherTyped = other as DeleteTaskTaskDelete;
    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;
  }

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

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

    final DeleteTaskData otherTyped = other as DeleteTaskData;
    return task_delete == otherTyped.task_delete;
    
  }
  @override
  int get hashCode => task_delete.hashCode;
  

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

  DeleteTaskData({
    this.task_delete,
  });
}

@immutable
class DeleteTaskVariables {
  final String id;
  @Deprecated('fromJson is deprecated for Variable classes as they are no longer required for deserialization.')
  DeleteTaskVariables.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 DeleteTaskVariables otherTyped = other as DeleteTaskVariables;
    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;
  }

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

