GiphyPreviewImage.fromJson constructor

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

Implementation

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