InputStoryContentPhoto.fromJson constructor

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

Parse from a json

Implementation

factory InputStoryContentPhoto.fromJson(Map<String, dynamic> json) =>
    InputStoryContentPhoto(
      photo: InputFile.fromJson(json['photo']),
      addedStickerFileIds: List<int>.from(
          (json['added_sticker_file_ids'] ?? [])
              .map((item) => item)
              .toList()),
    );