Authentication.fromJson constructor

Authentication.fromJson(
  1. Map json_
)

Implementation

Authentication.fromJson(core.Map json_)
    : this(
        providers: json_.containsKey('providers')
            ? (json_['providers'] as core.List)
                .map((value) => AuthProvider.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        rules: json_.containsKey('rules')
            ? (json_['rules'] as core.List)
                .map((value) => AuthenticationRule.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );