fromJson static method

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

Creates a object from a json

Implementation

static VideoNote fromJson(Map<String, dynamic> json) {
  return VideoNote(
    fileId: json['file_id']!,
    fileUniqueId: json['file_unique_id']!,
    length: json['length']!,
    duration: json['duration']!,
    thumb: callIfNotNull(PhotoSize.fromJson, json['thumb']),
    fileSize: json['file_size'],
  );
}