AnimatedEmoji.fromJson constructor

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

Parse from a json

Implementation

factory AnimatedEmoji.fromJson(Map<String, dynamic> json) => AnimatedEmoji(
  sticker: Sticker.fromJson(json['sticker']),
  fitzpatrickType: json['fitzpatrick_type'] ?? 0,
  sound: json['sound'] == null ? null : File.fromJson(json['sound']),
  extra: json['@extra'],
  clientId: json['@client_id'],
);