fromMap static method

MessageAnimatedEmoji? fromMap(
  1. Map<String, dynamic>? _map
)
override

Construct from Map.

Implementation

static MessageAnimatedEmoji? 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 animated_emoji = AnimatedEmoji.fromMap(_map['animated_emoji'])!;
  var emoji = _map['emoji']! as String;
  return MessageAnimatedEmoji(
    extra: extra,
    clientId: clientId,
    animated_emoji: animated_emoji,
    emoji: emoji,
  );
}