Authentication.fromJson constructor

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

Implementation

factory Authentication.fromJson(Map<String, dynamic> json) {
  return Authentication(
    rules:
        decodeListMessage(json['rules'], AuthenticationRule.fromJson) ?? [],
    providers:
        decodeListMessage(json['providers'], AuthProvider.fromJson) ?? [],
  );
}