toJson method

Map<String, dynamic> toJson()

Converts the GiphyAsset instance to a JSON map.

Implementation

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