fromJson static method
Inherited by: InputMessageAnimation InputMessageAudio InputMessageChecklist InputMessageContact InputMessageDice InputMessageDocument InputMessageForwarded InputMessageGame InputMessageInvoice InputMessageLiveLocation InputMessageLocation InputMessagePaidMedia InputMessagePhoto InputMessagePoll InputMessageRichMessage InputMessageStakeDice InputMessageSticker InputMessageStory InputMessageText InputMessageVenue InputMessageVideo InputMessageVideoNote InputMessageVoiceNote
Implementation
static InputMessageStakeDice? fromJson(Map<String, dynamic>? json) {
if (json == null) {
return null;
}
return InputMessageStakeDice(
stateHash: (json['state_hash'] as String?) ?? '',
stakeGramAmount: (json['stake_gram_amount'] as int?) ?? 0,
clearDraft: (json['clear_draft'] as bool?) ?? false,
);
}