/*
 * @Author       : WuWei
 * @LastEditors: ChenYaJin
 * @Date         : 2021-08-30 09:22:44
 * @LastEditTime: 2023-05-30 17:26:13
 * @Description  : Do not edit
 */
import 'package:json_annotation/json_annotation.dart';
part 'task_operation_form.g.dart';

@JsonSerializable(nullable: true)
class TaskOperationFormModel {
  final String? id;
  final String? type;
  final String? exPlatformId;
  final String? relationType;
  final String? relationName;
  final String? relationParentId;
  final num? nodeSequenceNumber;
  final String? status;
  final bool? isRelationQrCode;
  final List<ExecutableNodeOfTaskOperationFormModel>? executableNode;
  final String? formData;
  final NodeDataOfTaskOperationFormModel? nodeData;
  final String? relationId;
  final bool? read;
  final String? exPlatformName;

  TaskOperationFormModel({
    this.id,
    this.type,
    this.exPlatformId,
    this.relationType,
    this.relationName,
    this.relationParentId,
    this.nodeSequenceNumber,
    this.status,
    this.isRelationQrCode,
    this.executableNode,
    this.formData,
    this.nodeData,
    this.relationId,
    this.read,
    this.exPlatformName,
  });

  ///
  ///
  ///
  ///
  ///
  ///
  ///
//***以下为模板代码谨慎修改***
  factory TaskOperationFormModel.fromJson(Map<String, dynamic> json) =>
      _$TaskOperationFormModelFromJson(json);
  Map<String, dynamic> toJson() => _$TaskOperationFormModelToJson(this);
}

class ExecutableNodeOfTaskOperationFormModel {
  String? id;
  String? exPlatformId;
  String? relationType;
  String? relationId;
  String? relationName;
  num? nodeSequenceNumber;

  ExecutableNodeOfTaskOperationFormModel({
    this.id,
    this.exPlatformId,
    this.relationType,
    this.relationId,
    this.relationName,
    this.nodeSequenceNumber,
  });

  ExecutableNodeOfTaskOperationFormModel.fromJson(json) {
    Map<String, dynamic> map = Map.from(json ?? {});

    id = map['id'];
    exPlatformId = map['exPlatformId'];
    relationType = map['relationType'];
    relationId = map['relationId'];
    relationName = map['relationName'];
    nodeSequenceNumber = map['nodeSequenceNumber'];
  }

  Map<String, dynamic> toJson() {
    Map<String, dynamic> json = Map<String, dynamic>();

    json['id'] = this.id;
    json['exPlatformId'] = this.exPlatformId;
    json['relationType'] = this.relationType;
    json['relationId'] = this.relationId;
    json['relationName'] = this.relationName;
    json['nodeSequenceNumber'] = this.nodeSequenceNumber;

    return json;
  }
}

class FormDataOfTaskOperationFormModel {
  String? workStandardIds;

  FormDataOfTaskOperationFormModel({
    this.workStandardIds,
  });

  FormDataOfTaskOperationFormModel.fromJson(json) {
    Map<String, dynamic> map = Map.from(json ?? {});

    workStandardIds = map['workStandardIds'];
  }

  Map<String, dynamic> toJson() {
    Map<String, dynamic> json = Map<String, dynamic>();

    json['workStandardIds'] = this.workStandardIds;

    return json;
  }
}

class NodeDataOfTaskOperationFormModel {
  String? communityName;
  bool? isRelationQrCode;
  String? communityAreaName;
  String? result;
  String? communityId;

  NodeDataOfTaskOperationFormModel({
    this.communityName,
    this.isRelationQrCode,
    this.communityAreaName,
    this.result,
    this.communityId,
  });

  NodeDataOfTaskOperationFormModel.fromJson(json) {
    Map<String, dynamic> map = Map.from(json ?? {});

    communityName = map['communityName'];
    isRelationQrCode = map['isRelationQrCode'];
    communityAreaName = map['communityAreaName'];
    communityId = map['communityId'];
    result = map['result'];
  }

  Map<String, dynamic> toJson() {
    Map<String, dynamic> json = Map<String, dynamic>();

    json['communityName'] = this.communityName;
    json['isRelationQrCode'] = this.isRelationQrCode;
    json['communityAreaName'] = this.communityAreaName;
    json['communityId'] = this.communityId;
    json['result'] = this.result;

    return json;
  }
}
