Authentication.fromJson constructor

Authentication.fromJson(
  1. Map _json
)

Implementation

Authentication.fromJson(core.Map _json) {
  if (_json.containsKey("providers")) {
    providers = (_json["providers"] as core.List)
        .map<AuthProvider>((value) => new AuthProvider.fromJson(value))
        .toList();
  }
  if (_json.containsKey("rules")) {
    rules = (_json["rules"] as core.List)
        .map<AuthenticationRule>(
            (value) => new AuthenticationRule.fromJson(value))
        .toList();
  }
}