toJson method

Map<String, dynamic> toJson()

Converts this GiphyVideoPreviews object to a JSON map.

The resulting JSON map will contain keys 'fixedWidth' and 'fixedHeight' with their respective preview asset data.

Implementation

Map<String, dynamic> toJson() {
  return {
    'fixedWidth': fixedWidth.toJson(),
    'fixedHeight': fixedHeight.toJson(),
  };
}