AnimatedEmoji.fromJson constructor

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

Parses a AnimatedEmoji from TDLib JSON.

Implementation

factory AnimatedEmoji.fromJson(Map<String, dynamic> json) => AnimatedEmoji(
  sticker: _readOptional(json['sticker'], Sticker.fromJson),
  stickerWidth: _readInt(json['sticker_width']),
  stickerHeight: _readInt(json['sticker_height']),
  fitzpatrickType: _readInt(json['fitzpatrick_type']),
  sound: _readOptional(json['sound'], File.fromJson),
  isRegularEmoji: _readBool(json['is_regular_emoji']),
  extra: json['@extra'],
  clientId: _readClientId(json['@client_id']),
);