fromJson static method

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

Implementation

static InputVideoNote? fromJson(Map<String, dynamic>? json) {
  if (json == null) {
    return null;
  }

  return InputVideoNote(
    videoNote: InputFile.fromJson(tdMapFromJson(json['video_note'])),
    thumbnail: InputThumbnail.fromJson(tdMapFromJson(json['thumbnail'])),
    duration: (json['duration'] as int?) ?? 0,
    length: (json['length'] as int?) ?? 0,
  );
}