Sticker.fromJson constructor
Parse from a json
Implementation
factory Sticker.fromJson(Map<String, dynamic> json) => Sticker(
setId: int.tryParse(json['set_id'] ?? "") ?? 0,
width: json['width'],
height: json['height'],
emoji: json['emoji'],
isAnimated: json['is_animated'],
isMask: json['is_mask'],
maskPosition: json['mask_position'] == null ? null : MaskPosition.fromJson(json['mask_position']),
outline: List<ClosedVectorPath>.from((json['outline'] ?? []).map((item) => ClosedVectorPath.fromJson(item)).toList()),
thumbnail: json['thumbnail'] == null ? null : Thumbnail.fromJson(json['thumbnail']),
sticker: File.fromJson(json['sticker']),
extra: json['@extra'],
clientId: json['@client_id'],
);