fromMap static method

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

Construct from Map.

Implementation

static ChatEventMessageAutoDeleteTimeChanged? 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 old_message_auto_delete_time =
      _map['old_message_auto_delete_time']! as int;
  var new_message_auto_delete_time =
      _map['new_message_auto_delete_time']! as int;
  return ChatEventMessageAutoDeleteTimeChanged(
    extra: extra,
    clientId: clientId,
    old_message_auto_delete_time: old_message_auto_delete_time,
    new_message_auto_delete_time: new_message_auto_delete_time,
  );
}