fromJson static method
Inherited by: KeyboardButtonSourceMessage KeyboardButtonSourceWebApp
Implementation
static KeyboardButtonSource? fromJson(Map<String, dynamic>? json) {
if (json == null) {
return null;
}
switch (json['@type']) {
case KeyboardButtonSourceMessage.constructor:
return KeyboardButtonSourceMessage.fromJson(json);
case KeyboardButtonSourceWebApp.constructor:
return KeyboardButtonSourceWebApp.fromJson(json);
default:
return null;
}
}