InputStoryContentPhoto.fromJson constructor

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

Parses a InputStoryContentPhoto from TDLib JSON.

Implementation

factory InputStoryContentPhoto.fromJson(Map<String, dynamic> json) =>
    InputStoryContentPhoto(
      photo: _readObject(json['photo'], InputFile.fromJson),
      addedStickerFileIds:
          _readList<int>(json['added_sticker_file_ids'], _readInt),
    );