fromJson static method
Inherited by: InputStoryContentPhoto InputStoryContentVideo
Implementation
static InputStoryContentPhoto? fromJson(Map<String, dynamic>? json) {
if (json == null) {
return null;
}
return InputStoryContentPhoto(
photo: InputFile.fromJson(tdMapFromJson(json['photo'])),
addedStickerFileIds: List<int>.from(
tdListFromJson(
json['added_sticker_file_ids'],
).map((item) => int.tryParse((item as dynamic)?.toString() ?? '') ?? 0),
),
);
}