toJson method

Map<String, dynamic> toJson()

Implementation

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