toJson method

Map<String, dynamic> toJson()

Implementation

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