GiphyVideoCaptions.fromJson constructor

GiphyVideoCaptions.fromJson(
  1. Map<Object?, Object?> json
)

Creates a GiphyVideoCaptions object from a JSON map.

Implementation

factory GiphyVideoCaptions.fromJson(Map<Object?, Object?> json) {
  return GiphyVideoCaptions(
    videoCaption: json['en'] != null
        ? GiphyVideoCaption.fromJson(json['en'] as Map<Object?, Object?>)
        : null,
  );
}