InputMessageSticker.fromJson constructor

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

Parse from a json

Implementation

factory InputMessageSticker.fromJson(Map<String, dynamic> json) => InputMessageSticker(
  sticker: InputFile.fromJson(json['sticker']),
  thumbnail: json['thumbnail'] == null ? null : InputThumbnail.fromJson(json['thumbnail']),
  width: json['width'],
  height: json['height'],
  emoji: json['emoji'],
);