toJson method

  1. @override
Object toJson()
override

Implementation

@override
Object toJson() => {
  if (apiKeyConfig case final apiKeyConfig?)
    'apiKeyConfig': apiKeyConfig.toJson(),
  if (httpBasicAuthConfig case final httpBasicAuthConfig?)
    'httpBasicAuthConfig': httpBasicAuthConfig.toJson(),
  if (googleServiceAccountConfig case final googleServiceAccountConfig?)
    'googleServiceAccountConfig': googleServiceAccountConfig.toJson(),
  if (oauthConfig case final oauthConfig?)
    'oauthConfig': oauthConfig.toJson(),
  if (oidcConfig case final oidcConfig?) 'oidcConfig': oidcConfig.toJson(),
  if (authType.isNotDefault) 'authType': authType.toJson(),
};