AuthenticationRule.fromJson constructor
Implementation
factory AuthenticationRule.fromJson(Map<String, dynamic> json) {
return AuthenticationRule(
selector: json['selector'] ?? '',
oauth: decode(json['oauth'], OauthRequirements.fromJson),
allowWithoutCredential: json['allowWithoutCredential'] ?? false,
requirements:
decodeListMessage(json['requirements'], AuthRequirement.fromJson) ??
[],
);
}