/*
 * @Author       : WuWei
 * @LastEditors  : WuWei
 * @Date         : 2021-03-15 15:23:18
 * @LastEditTime : 2021-03-16 10:33:02
 * @FilePath     : /wisdom-huiguanjia-app/oa_package/lib/src/models/oa_menu_list_model.dart
 * @Description  : Do not edit
 */

class OaMenuListModel {
  String? groupName;
  List<OaMenusOfOaMenuListModel>? oaMenus;

  OaMenuListModel({
    this.groupName,
    this.oaMenus,
  });

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

    groupName = map['groupName'];
    oaMenus = List<OaMenusOfOaMenuListModel>.from((map["oaMenus"] ?? [])
        .map((x) => OaMenusOfOaMenuListModel.fromJson(x)));
  }

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

    json['groupName'] = this.groupName;
    json['oaMenus'] =
        List<dynamic>.from((oaMenus ?? []).map((x) => x.toJson()));

    return json;
  }
}

class OaMenusOfOaMenuListModel {
  String? processId;
  String? processName;
  String? ico;

  OaMenusOfOaMenuListModel({
    this.processId,
    this.processName,
    this.ico,
  });

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

    processId = map['processId'];
    processName = map['processName'];
    ico = map['ico'];
  }

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

    json['processId'] = this.processId;
    json['processName'] = this.processName;
    json['ico'] = this.ico;

    return json;
  }
}
