InputPageBlockButtonRow.fromJson constructor

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

Parses a InputPageBlockButtonRow from TDLib JSON.

Implementation

factory InputPageBlockButtonRow.fromJson(Map<String, dynamic> json) =>
    InputPageBlockButtonRow(
      buttons: _readList<InlineButton>(
        json['buttons'],
        (e) => _readObject(e, InlineButton.fromJson),
      ),
      align: _readOptional(
        json['align'],
        PageBlockHorizontalAlignment.fromJson,
      ),
    );