AuthRule.fromMap constructor

AuthRule.fromMap(
  1. Map<String, dynamic> map
)

Implementation

factory AuthRule.fromMap(Map<String, dynamic> map) {
  return AuthRule(
      authStrategy: AuthStrategy.values[map['authStrategy']],
      ownerField: map['ownerField'],
      identityClaim: map['identityClaim'],
      groupClaim: map['groupClaim'],
      groups: List<String>.from(map['groups']),
      groupsField: map['groupsField'],
      provider: map['provider'],
      operations: List<ModelOperation>.from(
          map['operations']?.map((dynamic x) => ModelOperation.values[x])));
}