AuthProvider.fromJson constructor

AuthProvider.fromJson(
  1. Map json_
)

Implementation

AuthProvider.fromJson(core.Map json_)
    : this(
        audiences: json_.containsKey('audiences')
            ? json_['audiences'] as core.String
            : null,
        authorizationUrl: json_.containsKey('authorizationUrl')
            ? json_['authorizationUrl'] as core.String
            : null,
        id: json_.containsKey('id') ? json_['id'] as core.String : null,
        issuer: json_.containsKey('issuer')
            ? json_['issuer'] as core.String
            : null,
        jwksUri: json_.containsKey('jwksUri')
            ? json_['jwksUri'] as core.String
            : null,
        jwtLocations: json_.containsKey('jwtLocations')
            ? (json_['jwtLocations'] as core.List)
                .map((value) => JwtLocation.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );