fromMap static method

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

Construct from Map.

Implementation

static ChatActionBarJoinRequest? 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 title = _map['title']! as String;
  var is_channel = _map['is_channel']! as bool;
  var request_date = _map['request_date']! as int;
  return ChatActionBarJoinRequest(
    extra: extra,
    clientId: clientId,
    title: title,
    is_channel: is_channel,
    request_date: request_date,
  );
}