fromJson static method
Inherited by: KeyboardButtonSourceMessage KeyboardButtonSourceWebApp
Implementation
static KeyboardButtonSourceMessage? fromJson(Map<String, dynamic>? json) {
if (json == null) {
return null;
}
return KeyboardButtonSourceMessage(
chatId: (json['chat_id'] as int?) ?? 0,
messageId: (json['message_id'] as int?) ?? 0,
);
}