fromJson static method
Inherited by: KeyboardButtonTypeRequestChat KeyboardButtonTypeRequestLocation KeyboardButtonTypeRequestManagedBot KeyboardButtonTypeRequestPhoneNumber KeyboardButtonTypeRequestPoll KeyboardButtonTypeRequestUsers KeyboardButtonTypeText KeyboardButtonTypeWebApp
Implementation
static KeyboardButtonTypeRequestManagedBot? fromJson(
Map<String, dynamic>? json,
) {
if (json == null) {
return null;
}
return KeyboardButtonTypeRequestManagedBot(
id: (json['id'] as int?) ?? 0,
suggestedName: (json['suggested_name'] as String?) ?? '',
suggestedUsername: (json['suggested_username'] as String?) ?? '',
);
}