fromJson static method
Implementation
static BotCommand? fromJson(Map<String, dynamic>? json) {
if (json == null) {
return null;
}
return BotCommand(
command: (json['command'] as String?) ?? '',
description: (json['description'] as String?) ?? '',
isEphemeral: (json['is_ephemeral'] as bool?) ?? false,
);
}