KeyboardButton.fromJson constructor

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

Parse from a json

Implementation

factory KeyboardButton.fromJson(Map<String, dynamic> json) => KeyboardButton(
      text: json['text'],
      type: KeyboardButtonType.fromJson(json['type']),
    );