AuthResult.fromJson constructor
AuthResult.fromJson(
- Map<String, dynamic> json
)
Implementation
factory AuthResult.fromJson(Map<String, dynamic> json) {
return AuthResult(
allowed: json['allowed'] != null
? Allowed.fromJson(json['allowed'] as Map<String, dynamic>)
: null,
authDecision: (json['authDecision'] as String?)?.toAuthDecision(),
authInfo: json['authInfo'] != null
? AuthInfo.fromJson(json['authInfo'] as Map<String, dynamic>)
: null,
denied: json['denied'] != null
? Denied.fromJson(json['denied'] as Map<String, dynamic>)
: null,
missingContextValues: (json['missingContextValues'] as List?)
?.whereNotNull()
.map((e) => e as String)
.toList(),
);
}