toJson method
Implementation
Map<String, dynamic> toJson() {
final _json = <String, dynamic>{};
if (companyTypeId != null) {
_json[r'CompanyTypeId'] = companyTypeId;
} else {
_json[r'CompanyTypeId'] = null;
}
_json[r'Name'] = name;
if (createDate != null) {
_json[r'CreateDate'] = createDate!.toUtc().toIso8601String();
} else {
_json[r'CreateDate'] = null;
}
if (changeDate != null) {
_json[r'ChangeDate'] = changeDate!.toUtc().toIso8601String();
} else {
_json[r'ChangeDate'] = null;
}
if (companyTypeChannels != null) {
_json[r'CompanyTypeChannels'] = companyTypeChannels;
} else {
_json[r'CompanyTypeChannels'] = null;
}
if (companyTypeTracks != null) {
_json[r'CompanyTypeTracks'] = companyTypeTracks;
} else {
_json[r'CompanyTypeTracks'] = null;
}
if (companyTypeSelections != null) {
_json[r'CompanyTypeSelections'] = companyTypeSelections;
} else {
_json[r'CompanyTypeSelections'] = null;
}
if (companyTypePlaylists != null) {
_json[r'CompanyTypePlaylists'] = companyTypePlaylists;
} else {
_json[r'CompanyTypePlaylists'] = null;
}
if (companyTypeUsers != null) {
_json[r'CompanyTypeUsers'] = companyTypeUsers;
} else {
_json[r'CompanyTypeUsers'] = null;
}
return _json;
}