InlineButton.fromJson constructor

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

Parses a InlineButton from TDLib JSON.

Implementation

factory InlineButton.fromJson(Map<String, dynamic> json) => InlineButton(
  text: _readObject(json['text'], RichText.fromJson),
  style: _readObject(json['style'], ButtonStyle.fromJson),
  type: _readObject(json['type'], InlineKeyboardButtonType.fromJson),
);