InputPageBlockPhoto.fromJson constructor

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

Parses a InputPageBlockPhoto from TDLib JSON.

Implementation

factory InputPageBlockPhoto.fromJson(Map<String, dynamic> json) =>
    InputPageBlockPhoto(
      photo: _readObject(json['photo'], InputPhoto.fromJson),
      caption: _readOptional(json['caption'], PageBlockCaption.fromJson),
      hasSpoiler: _readBool(json['has_spoiler']),
    );