AnimatedEmoji.fromJson constructor

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

Parse from a json

Implementation

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