toJson method

Map<String, dynamic> toJson()

Converts this GiphyVideoPreviewAsset object to a JSON map.

The resulting JSON map will contain keys 'width', 'height', and 'url'.

Implementation

Map<String, dynamic> toJson() {
  return {
    'width': width,
    'height': height,
    'url': url,
  };
}