mapToPasskey static method Null safety

Passkey mapToPasskey(
  1. dynamic passkey
)

Implementation

static Passkey mapToPasskey(dynamic passkey) {
  return Passkey(
    id: passkey["id"],
    localCreated: passkey["localCreated"],
    localUpdated: passkey["localUpdated"],
    apiBaseUrl: passkey["apiBaseUrl"],
    keyHandle: passkey["keyHandle"],
    state: PasskeyStateHelper.fromString(passkey["state"]),
    created: passkey["created"],
    updated: passkey["updated"],
    tenant: PasskeyTenant.mapToTenant(passkey["tenant"]),
    realm: PasskeyRealm.mapToRealm(passkey["realm"]),
    identity: PasskeyIdentity.mapToIdentity(passkey["identity"]),
    theme: PasskeyTheme.mapToTheme(passkey["theme"]),
  );
}