VideoNote.fromJson constructor

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

Parse from a json

Implementation

factory VideoNote.fromJson(Map<String, dynamic> json) => VideoNote(
      duration: json['duration'],
      waveform: json['waveform'],
      length: json['length'],
      minithumbnail: json['minithumbnail'] == null
          ? null
          : Minithumbnail.fromJson(json['minithumbnail']),
      thumbnail: json['thumbnail'] == null
          ? null
          : Thumbnail.fromJson(json['thumbnail']),
      speechRecognitionResult: json['speech_recognition_result'] == null
          ? null
          : SpeechRecognitionResult.fromJson(
              json['speech_recognition_result']),
      video: File.fromJson(json['video']),
    );