SecurityScheme.fromJson constructor

SecurityScheme.fromJson(
  1. Map json_
)

Implementation

SecurityScheme.fromJson(core.Map json_)
  : this(
      apiKeySecurityScheme: json_.containsKey('apiKeySecurityScheme')
          ? APIKeySecurityScheme.fromJson(
              json_['apiKeySecurityScheme']
                  as core.Map<core.String, core.dynamic>,
            )
          : null,
      httpAuthSecurityScheme: json_.containsKey('httpAuthSecurityScheme')
          ? HTTPAuthSecurityScheme.fromJson(
              json_['httpAuthSecurityScheme']
                  as core.Map<core.String, core.dynamic>,
            )
          : null,
      mtlsSecurityScheme: json_.containsKey('mtlsSecurityScheme')
          ? MutualTlsSecurityScheme.fromJson(
              json_['mtlsSecurityScheme']
                  as core.Map<core.String, core.dynamic>,
            )
          : null,
      oauth2SecurityScheme: json_.containsKey('oauth2SecurityScheme')
          ? OAuth2SecurityScheme.fromJson(
              json_['oauth2SecurityScheme']
                  as core.Map<core.String, core.dynamic>,
            )
          : null,
      openIdConnectSecurityScheme:
          json_.containsKey('openIdConnectSecurityScheme')
          ? OpenIdConnectSecurityScheme.fromJson(
              json_['openIdConnectSecurityScheme']
                  as core.Map<core.String, core.dynamic>,
            )
          : null,
    );