class FixerItemModel { int? id; String? name; List? repairmanVos; FixerItemModel({required this.id, this.name, this.repairmanVos}); FixerItemModel.fromJson(Map json) { id = json['id']; name = json['name']; if (json['repairmanVos'] != null) { repairmanVos = []; json['repairmanVos'].forEach((v) { repairmanVos!.add(new RepairmanVos.fromJson(v)); }); } else repairmanVos = []; } Map toJson() { final Map data = new Map(); data['id'] = this.id; data['name'] = this.name; if (this.repairmanVos != null) { data['repairmanVos'] = this.repairmanVos!.map((v) => v.toJson()).toList(); } return data; } } class RepairmanVos { int? id; String? name; String? tel; RepairmanVos({this.id, this.name, this.tel}); RepairmanVos.fromJson(Map json) { id = json['id']; name = json['name']; tel = json['tel']; } Map toJson() { final Map data = new Map(); data['id'] = this.id; data['name'] = this.name; data['tel'] = this.tel; return data; } }