VirtualAuthenticatorOptions.fromJson constructor

VirtualAuthenticatorOptions.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory VirtualAuthenticatorOptions.fromJson(Map<String, dynamic> json) {
  return VirtualAuthenticatorOptions(
    protocol: AuthenticatorProtocol.fromJson(json['protocol'] as String),
    ctap2Version: json.containsKey('ctap2Version')
        ? Ctap2Version.fromJson(json['ctap2Version'] as String)
        : null,
    transport: AuthenticatorTransport.fromJson(json['transport'] as String),
    hasResidentKey: json.containsKey('hasResidentKey')
        ? json['hasResidentKey'] as bool
        : null,
    hasUserVerification: json.containsKey('hasUserVerification')
        ? json['hasUserVerification'] as bool
        : null,
    hasLargeBlob: json.containsKey('hasLargeBlob')
        ? json['hasLargeBlob'] as bool
        : null,
    hasCredBlob:
        json.containsKey('hasCredBlob') ? json['hasCredBlob'] as bool : null,
    hasMinPinLength: json.containsKey('hasMinPinLength')
        ? json['hasMinPinLength'] as bool
        : null,
    hasPrf: json.containsKey('hasPrf') ? json['hasPrf'] as bool : null,
    automaticPresenceSimulation:
        json.containsKey('automaticPresenceSimulation')
            ? json['automaticPresenceSimulation'] as bool
            : null,
    isUserVerified: json.containsKey('isUserVerified')
        ? json['isUserVerified'] as bool
        : null,
  );
}