AuthenticationRule.fromJson constructor

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

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) ??
        [],
  );
}