fromJson static method

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

Implementation

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

  return InputThumbnail(
    thumbnail: InputFile.fromJson(tdMapFromJson(json['thumbnail'])),
    width: (json['width'] as int?) ?? 0,
    height: (json['height'] as int?) ?? 0,
  );
}