GiphyPreviewImage.fromJson constructor

GiphyPreviewImage.fromJson(
  1. Map<String, dynamic> json
)

Creates a new preview image from json

Implementation

factory GiphyPreviewImage.fromJson(Map<String, dynamic> json) =>
    GiphyPreviewImage(
      width: json['width'],
      height: json['height'],
      mp4: json['mp4'] ?? '',
      mp4Size: json['mp4_size'] ?? '',
    );