toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
if (this.dateCreated != null) {
json[r'date_created'] = this.dateCreated!.toUtc().toIso8601String();
} else {
json[r'date_created'] = null;
}
if (this.lastUpdated != null) {
json[r'last_updated'] = this.lastUpdated!.toUtc().toIso8601String();
} else {
json[r'last_updated'] = null;
}
if (this.industryId != null) {
json[r'industry_id'] = this.industryId;
} else {
json[r'industry_id'] = null;
}
json[r'industry_name'] = this.industryName;
json[r'short_name'] = this.shortName;
if (this.slug != null) {
json[r'slug'] = this.slug;
} else {
json[r'slug'] = null;
}
if (this.naiscCode != null) {
json[r'naisc_code'] = this.naiscCode;
} else {
json[r'naisc_code'] = null;
}
if (this.description != null) {
json[r'description'] = this.description;
} else {
json[r'description'] = null;
}
return json;
}