fromMap static method

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

Construct from Map.

Implementation

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