InputMessageVideoNote.fromJson constructor

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

Parse from a json

Implementation

factory InputMessageVideoNote.fromJson(Map<String, dynamic> json) =>
    InputMessageVideoNote(
      videoNote: InputFile.fromJson(json['video_note']),
      thumbnail: json['thumbnail'] == null
          ? null
          : InputThumbnail.fromJson(json['thumbnail']),
      duration: json['duration'],
      length: json['length'],
    );