InputThumbnail.fromJson constructor

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

Parses a InputThumbnail from TDLib JSON.

Implementation

factory InputThumbnail.fromJson(Map<String, dynamic> json) => InputThumbnail(
      thumbnail: _readObject(json['thumbnail'], InputFile.fromJson),
      width: _readInt(json['width']),
      height: _readInt(json['height']),
    );