toJson method

  1. @override
Map<String, dynamic> toJson()
override

Converts an object to JSON.

Implementation

@override
Map<String, dynamic> toJson() {
  final returnValue = <String, dynamic>{
    '\$hash': 'e89c45b2',
    '\$name': 'WebPage',
    'flags': flags,
    'hasLargeMedia': hasLargeMedia,
    'videoCoverPhoto': videoCoverPhoto,
    '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;
}