mapToCredential static method
Implementation
static Credential mapToCredential(dynamic cred) {
return Credential(
id: cred["id"],
localCreated: cred["localCreated"],
localUpdated: cred["localUpdated"],
apiBaseURL: cred["apiBaseUrl"],
tenantId: cred["tenantId"],
realmId: cred["realmId"],
identityId: cred["identityId"],
keyHandle: cred["keyHandle"],
state: CredentialStateHelper.fromString(cred["state"]),
created: cred["created"],
updated: cred["updated"],
tenant: Tenant.mapToTenant(cred["tenant"]),
realm: Realm.mapToRealm(cred["realm"]),
identity: Identity.mapToIdentity(cred["identity"]),
theme: Theme.mapToTheme(cred["theme"]),
);
}