/*
 * @Author       : WuWei
 * @LastEditors  : WuWei
 * @Date         : 2021-12-08 10:00:36
 * @LastEditTime : 2023-05-16 09:21:25
 * @Description  : Do not edit
 */
class StateMenu {
  String? intelligentFormGroupId;
  String? intelligentFormGroupName;
  List<WMenuItem>? forms;
  StateMenu({
    this.intelligentFormGroupId,
    this.intelligentFormGroupName,
    this.forms,
  });

  StateMenu.fromJson(json) {
    Map<String, dynamic> map = Map.from(json ?? {});
    intelligentFormGroupId = map['intelligentFormGroupId'];
    intelligentFormGroupName = map['intelligentFormGroupName'];
    forms = List<WMenuItem>.from(
        (map["forms"] ?? []).map((x) => WMenuItem.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 WMenuItem {
  String? name;
  String? id;
  String? type;
  String? mtype;
  String? fillPeriodType;
  String? icon;
  String? formIdentification;
  WMenuItem({
    this.id,
    this.name,
    this.type,
    this.mtype,
    this.fillPeriodType,
    this.icon,
    this.formIdentification,
  });

  WMenuItem.fromJson(json) {
    Map<String, dynamic> map = Map.from(json ?? {});
    id = map['id'];
    name = map['name'];
    type = map["type"];
    mtype = map["mtype"];
    fillPeriodType = map["fillPeriodType"];
    icon = map['icon'];
    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['mtype'] = this.mtype;
    json['fillPeriodType'] = this.fillPeriodType;
    json['icon'] = this.icon;
    json['formIdentification'] = this.formIdentification;

    return json;
  }
}
