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(json['video_note'] as Map<String, dynamic>?)!,
    thumbnail:
        InputThumbnail.fromJson(json['thumbnail'] as Map<String, dynamic>?),
    duration: (json['duration'] as int?) ?? 0,
    length: (json['length'] as int?) ?? 0,
  );
}