/*
 * @Author       : WuWei
 * @LastEditors  : WuWei
 * @Date         : 2022-08-16 15:44:41
 * @LastEditTime : 2023-02-02 15:24:57
 * @Description  : Do not edit
 */

class AuthListModel {
  String? intelligentFormGroupId;
  String? intelligentFormGroupName;
  List<FormsOfAuthListModel>? forms;

  AuthListModel({
    this.intelligentFormGroupId,
    this.intelligentFormGroupName,
    this.forms,
  });

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

    intelligentFormGroupId = map['intelligentFormGroupId'];
    intelligentFormGroupName = map['intelligentFormGroupName'];
    forms = List<FormsOfAuthListModel>.from(
        (map["forms"] ?? []).map((x) => FormsOfAuthListModel.fromJson(x)));
  }

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

    json['intelligentFormGroupId'] = this.intelligentFormGroupId;
    json['intelligentFormGroupName'] = this.intelligentFormGroupName;
    json['forms'] = List<dynamic>.from((forms ?? []).map((x) => x.toJson()));

    return json;
  }
}

class FormsOfAuthListModel {
  String? id;
  String? name;
  String? type;
  String? intelligentFormGroupId;
  String? ico;
  String? fillPeriodType;
  String? formIdentification;

  FormsOfAuthListModel({
    this.id,
    this.name,
    this.type,
    this.intelligentFormGroupId,
    this.ico,
    this.fillPeriodType,
    this.formIdentification,
  });

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

    id = map['id'];
    name = map['name'];
    type = map['type'];
    intelligentFormGroupId = map['intelligentFormGroupId'];
    ico = map['ico'];
    fillPeriodType = map['fillPeriodType'];
    formIdentification = map['formIdentification'];
  }

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

    json['id'] = this.id;
    json['name'] = this.name;
    json['type'] = this.type;
    json['intelligentFormGroupId'] = this.intelligentFormGroupId;
    json['ico'] = this.ico;
    json['fillPeriodType'] = this.fillPeriodType;
    json['formIdentification'] = this.formIdentification;

    return json;
  }
}
