toJson method
Implementation
Map<String, dynamic> toJson() {
final _json = <String, dynamic>{};
if (channelId != null) {
_json[r'ChannelId'] = channelId;
} else {
_json[r'ChannelId'] = null;
}
_json[r'Name'] = name;
_json[r'RadioPoint'] = radioPoint;
if (image != null) {
_json[r'Image'] = image;
} else {
_json[r'Image'] = null;
}
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;
}
return _json;
}