InputPageBlockListItem.fromJson constructor

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

Parses a InputPageBlockListItem from TDLib JSON.

Implementation

factory InputPageBlockListItem.fromJson(Map<String, dynamic> json) =>
    InputPageBlockListItem(
      blocks: _readList<InputPageBlock>(
        json['blocks'],
        (e) => _readObject(e, InputPageBlock.fromJson),
      ),
      hasCheckbox: _readBool(json['has_checkbox']),
      isChecked: _readBool(json['is_checked']),
      value: _readInt(json['value']),
      type: _readString(json['type']),
    );