toJson method
Converts the GiphyImage instance to a JSON object.
Returns a map containing key-value pairs corresponding to the image attributes.
Implementation
Map<String, dynamic> toJson() {
return {
'gifUrl': gifUrl,
'width': width,
'height': height,
'gifSize': gifSize,
'frames': frames,
'mp4Url': mp4Url,
'mp4Size': mp4Size,
'webPUrl': webPUrl,
'webPSize': webPSize,
'mediaId': mediaId,
'renditionType': GiphyRenditionUtil.toStringValue(renditionType),
};
}