You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
aku_new_community/lib/model/manager/moving_company_model.dart

43 lines
1.1 KiB

class MovingCompanyModel {
4 years ago
List<AppMovingCompanyVoList>? appMovingCompanyVoList;
MovingCompanyModel({this.appMovingCompanyVoList});
MovingCompanyModel.fromJson(Map<String, dynamic> json) {
if (json['appMovingCompanyVoList'] != null) {
4 years ago
appMovingCompanyVoList = [];
json['appMovingCompanyVoList'].forEach((v) {
4 years ago
appMovingCompanyVoList!.add(new AppMovingCompanyVoList.fromJson(v));
});
}
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
if (this.appMovingCompanyVoList != null) {
data['appMovingCompanyVoList'] =
4 years ago
this.appMovingCompanyVoList!.map((v) => v.toJson()).toList();
}
return data;
}
}
class AppMovingCompanyVoList {
4 years ago
String? name;
String? tel;
AppMovingCompanyVoList({this.name, this.tel});
AppMovingCompanyVoList.fromJson(Map<String, dynamic> json) {
name = json['name'];
tel = json['tel'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['name'] = this.name;
data['tel'] = this.tel;
return data;
}
}