toJson method
Converts the GiphyContentRequest instance to a JSON object.
Implementation
Map<String, dynamic> toJson() {
return {
'mediaType': GiphyMediaTypeExtension.toStringValue(mediaType),
'rating':
rating != null ? GiphyRatingExtension.toStringValue(rating!) : null,
'requestType': requestType.toString().split('.').last,
'searchQuery': searchQuery,
};
}