toJson method
Converts an object to JSON.
Implementation
@override
Map<String, dynamic> toJson() {
final returnValue = <String, dynamic>{
"\$": "0xe89c45b2",
"flags": flags,
"hasLargeMedia": hasLargeMedia,
"id": id,
"url": url,
"displayUrl": displayUrl,
"hash": hash,
"type": type,
"siteName": siteName,
"title": title,
"description": description,
"photo": photo,
"embedUrl": embedUrl,
"embedType": embedType,
"embedWidth": embedWidth,
"embedHeight": embedHeight,
"duration": duration,
"author": author,
"document": document,
"cachedPage": cachedPage,
"attributes": attributes,
};
// Finished toJson.
return returnValue;
}