fromMap static method
override
Construct from Map.
Implementation
static InputStoryContentPhoto? fromMap(Map<String, dynamic>? _map) {
if (_map == null) return null;
var _ = _map["@type"];
if (_ != CONSTRUCTOR) return null;
var extra = _map['@extra'];
var clientId = _map['@clientId'];
var photo = InputFile.fromMap(_map['photo'])!;
var added_sticker_file_ids = List<int>.from(
(_map["added_sticker_file_ids"] ?? []).map(
(e) => e as int,
),
);
return InputStoryContentPhoto(
extra: extra,
clientId: clientId,
photo: photo,
added_sticker_file_ids: added_sticker_file_ids,
);
}