fromMap static method

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

Construct from Map.

Implementation

static SetRecoveryEmailAddress? 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 password = _map['password']! as String;
  var new_recovery_email_address =
      _map['new_recovery_email_address']! as String;
  return SetRecoveryEmailAddress(
    extra: extra,
    clientId: clientId,
    password: password,
    new_recovery_email_address: new_recovery_email_address,
  );
}