fromJson static method

BotMenuButton? fromJson(
  1. Map<String, dynamic>? json
)

Implementation

static BotMenuButton? fromJson(Map<String, dynamic>? json) {
  if (json == null) {
    return null;
  }

  return BotMenuButton(
    text: (json['text'] as String?) ?? '',
    url: (json['url'] as String?) ?? '',
  );
}