KeyboardButton.fromJson constructor

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

Parses a KeyboardButton from TDLib JSON.

Implementation

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