fromMap static method

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

Construct from Map.

Implementation

static DeviceTokenApplePushVoIP? 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 device_token = _map['device_token']! as String;
  var is_app_sandbox = _map['is_app_sandbox']! as bool;
  var encrypt = _map['encrypt']! as bool;
  return DeviceTokenApplePushVoIP(
    extra: extra,
    clientId: clientId,
    device_token: device_token,
    is_app_sandbox: is_app_sandbox,
    encrypt: encrypt,
  );
}