toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.channel != null) {
    json[r'channel'] = this.channel;
  } else {
    json[r'channel'] = null;
  }
  if (this.content != null) {
    json[r'content'] = this.content;
  } else {
    json[r'content'] = null;
  }
    json[r'media'] = this.media;
  if (this.scheduleAt != null) {
    json[r'scheduleAt'] = this.scheduleAt;
  } else {
    json[r'scheduleAt'] = null;
  }
  if (this.status != null) {
    json[r'status'] = this.status;
  } else {
    json[r'status'] = null;
  }
  return json;
}