GiphyVideoCaption.fromJson constructor

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

Creates a new GiphyVideoCaption instance from a JSON object.

The keys srt and vtt in the JSON map should be of type String?.

Implementation

factory GiphyVideoCaption.fromJson(Map<Object?, Object?> json) {
  return GiphyVideoCaption(
    srt: json['srt'] as String?,
    vtt: json['vtt'] as String?,
  );
}