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.
 
 
 
 
 

48 lines
1.3 KiB

class OccupationData {
int? industryCode;
String? industry;
List<OccupationList>? occupationList;
OccupationData({this.industryCode, this.industry, this.occupationList});
OccupationData.fromJson(Map<String, dynamic> json) {
industryCode = json['industryCode'];
industry = json['industry'];
if (json['occupationList'] != null) {
occupationList = <OccupationList>[];
json['occupationList'].forEach((v) {
occupationList!.add(new OccupationList.fromJson(v));
});
}
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['industryCode'] = this.industryCode;
data['industry'] = this.industry;
if (this.occupationList != null) {
data['occupationList'] =
this.occupationList!.map((v) => v.toJson()).toList();
}
return data;
}
}
class OccupationList {
int? occupationCode;
String? occupation;
OccupationList({this.occupationCode, this.occupation});
OccupationList.fromJson(Map<String, dynamic> json) {
occupationCode = json['occupationCode'];
occupation = json['occupation'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['occupationCode'] = this.occupationCode;
data['occupation'] = this.occupation;
return data;
}
}