toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() {
  var content = this.content;
  var embeddedContent = this.embeddedContent;
  var webresource = this.webresource;
  var mediaToken = this.mediaToken;

  final json = <String, Object?>{};
  if (content != null) {
    json[r'content'] = content;
  }
  if (embeddedContent != null) {
    json[r'embeddedContent'] = embeddedContent;
  }
  if (webresource != null) {
    json[r'webresource'] = webresource;
  }
  if (mediaToken != null) {
    json[r'mediaToken'] = mediaToken;
  }
  return json;
}