fromJson static method
Inherited by: InputMessageAnimation InputMessageAudio InputMessageChecklist InputMessageContact InputMessageDice InputMessageDocument InputMessageForwarded InputMessageGame InputMessageInvoice InputMessageLiveLocation InputMessageLocation InputMessagePaidMedia InputMessagePhoto InputMessagePoll InputMessageRichMessage InputMessageSharedWidget InputMessageStakeDice InputMessageSticker InputMessageStory InputMessageText InputMessageVenue InputMessageVideoNote InputMessageVideo InputMessageVoiceNote InputMessageWidget
Implementation
static InputMessageSticker? fromJson(Map<String, dynamic>? json) {
if (json == null) {
return null;
}
return InputMessageSticker(
sticker: InputSticker.fromJson(json['sticker'] as Map<String, dynamic>?)!,
emoji: (json['emoji'] as String?) ?? '',
);
}