class MyCalendarList { List? myCalendars; List? unitCalendars; List? followCalendars; MyCalendarList({this.myCalendars, this.unitCalendars, this.followCalendars}); factory MyCalendarList.fromJson(Map json) => MyCalendarList( myCalendars: json["myCalendars"] == null ? [] : List.from( json["myCalendars"]!.map((e) => CalendarInfo.fromJson(e))), unitCalendars: json["unitCalendars"] == null ? [] : List.from( json["unitCalendars"]!.map((e) => CalendarInfo.fromJson(e))), followCalendars: json["followCalendars"] == null ? [] : List.from( json["followCalendars"]!.map((e) => CalendarInfo.fromJson(e)))); Map toJson() => { "myCalendars": myCalendars, "unitCalendars": unitCalendars, "followCalendars": followCalendars, }; } class CalendarInfo { bool? manageable; bool? publishable; String? id; String? name; String? type; String? target; // 所属组织 String? color; String? description; String? source; String? createor; bool? isPublic; String? createTime; String? updateTime; List? manageablePersonList; List? publishableGroupList; List? publishablePersonList; List? publishableUnitList; List? viewableGroupList; List? viewablePersonList; List? viewableUnitList; String? groupedTag; CalendarInfo({ this.manageable, this.publishable, this.id, this.name, this.type, this.target, this.color, this.description, this.source, this.createor, this.isPublic, this.createTime, this.updateTime, this.manageablePersonList, this.publishableGroupList, this.publishablePersonList, this.publishableUnitList, this.viewableGroupList, this.viewablePersonList, this.viewableUnitList, this.groupedTag, }); factory CalendarInfo.fromJson(Map json) => CalendarInfo( manageable: json["manageable"], publishable: json["publishable"], id: json["id"], name: json["name"], type: json["type"], target: json["target"], color: json["color"], description: json["description"], source: json["source"], createor: json["createor"], isPublic: json["isPublic"], createTime: json["createTime"], updateTime: json["updateTime"], manageablePersonList: json["manageablePersonList"] == null ? [] : List.from(json["manageablePersonList"]!.map((x) => x)), publishableGroupList: json["publishableGroupList"] == null ? [] : List.from(json["publishableGroupList"]!.map((x) => x)), publishablePersonList: json["publishablePersonList"] == null ? [] : List.from(json["publishablePersonList"]!.map((x) => x)), publishableUnitList: json["publishableUnitList"] == null ? [] : List.from(json["publishableUnitList"]!.map((x) => x)), viewableGroupList: json["viewableGroupList"] == null ? [] : List.from(json["viewableGroupList"]!.map((x) => x)), viewablePersonList: json["viewablePersonList"] == null ? [] : List.from(json["viewablePersonList"]!.map((x) => x)), viewableUnitList: json["viewableUnitList"] == null ? [] : List.from(json["viewableUnitList"]!.map((x) => x)), groupedTag: json["groupedTag"], ); Map toJson() => { "manageable": manageable, "publishable": publishable, "id": id, "name": name, "type": type, "target": target, "color": color, "description": description, "source": source, "createor": createor, "isPublic": isPublic, "createTime": createTime, "updateTime": updateTime, "manageablePersonList": manageablePersonList == null ? [] : List.from(manageablePersonList!.map((x) => x)), "publishableGroupList": publishableGroupList == null ? [] : List.from(publishableGroupList!.map((x) => x)), "publishablePersonList": publishablePersonList == null ? [] : List.from(publishablePersonList!.map((x) => x)), "publishableUnitList": publishableUnitList == null ? [] : List.from(publishableUnitList!.map((x) => x)), "viewableGroupList": viewableGroupList == null ? [] : List.from(viewableGroupList!.map((x) => x)), "viewablePersonList": viewablePersonList == null ? [] : List.from(viewablePersonList!.map((x) => x)), "viewableUnitList": viewableUnitList == null ? [] : List.from(viewableUnitList!.map((x) => x)), "groupedTag": groupedTag, }; }