toJson method
Implementation
Map<String, Object?> toJson() {
var value = this.value;
var representation = this.representation;
var embeddedContent = this.embeddedContent;
var webresource = this.webresource;
var mediaToken = this.mediaToken;
var expandable = this.expandable;
var links = this.links;
final json = <String, Object?>{};
json[r'value'] = value;
json[r'representation'] = representation.value;
json[r'embeddedContent'] = embeddedContent.map((i) => i.toJson()).toList();
if (webresource != null) {
json[r'webresource'] = webresource.toJson();
}
if (mediaToken != null) {
json[r'mediaToken'] = mediaToken.toJson();
}
if (expandable != null) {
json[r'_expandable'] = expandable.toJson();
}
if (links != null) {
json[r'_links'] = links.toJson();
}
return json;
}