fromMap static method

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

Construct from Map.

Implementation

static CreateNewBasicGroupChat? 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 user_ids = List<int>.from(
    (_map["user_ids"] ?? []).map(
      (e) => e as int,
    ),
  );
  var title = _map['title']! as String;
  var message_auto_delete_time = _map['message_auto_delete_time']! as int;
  return CreateNewBasicGroupChat(
    extra: extra,
    clientId: clientId,
    user_ids: user_ids,
    title: title,
    message_auto_delete_time: message_auto_delete_time,
  );
}