InputSticker.fromJson constructor

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

Parses a InputSticker from TDLib JSON.

Implementation

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