ConnectionAuthenticationConfigurationOauth2Properties.fromMap constructor

ConnectionAuthenticationConfigurationOauth2Properties.fromMap(
  1. Map<String, dynamic> map
)

Implementation

factory ConnectionAuthenticationConfigurationOauth2Properties.fromMap(Map<String, dynamic> map) {
  return ConnectionAuthenticationConfigurationOauth2Properties(
    authorizationCodeProperties: (() { final guardedValue = map['authorizationCodeProperties']; if (guardedValue == null) return null; return pulumi.Input.fromValue(ConnectionAuthenticationConfigurationOauth2PropertiesAuthorizationCodeProperties.fromMap((guardedValue as Map).cast<String, dynamic>())); })(),
    oauth2ClientApplication: (() { final guardedValue = map['oauth2ClientApplication']; if (guardedValue == null) return null; return pulumi.Input.fromValue(ConnectionAuthenticationConfigurationOauth2PropertiesOauth2ClientApplication.fromMap((guardedValue as Map).cast<String, dynamic>())); })(),
    oauth2Credentials: (() { final guardedValue = map['oauth2Credentials']; if (guardedValue == null) return null; return pulumi.Input.fromValue(ConnectionAuthenticationConfigurationOauth2PropertiesOauth2Credentials.fromMap((guardedValue as Map).cast<String, dynamic>())); })(),
    oauth2GrantType: (() { final guardedValue = map['oauth2GrantType']; if (guardedValue == null) return null; return pulumi.Input.fromValue(guardedValue as String); })(),
    tokenUrl: (() { final guardedValue = map['tokenUrl']; if (guardedValue == null) return null; return pulumi.Input.fromValue(guardedValue as String); })(),
    tokenUrlParametersMap: (() { final guardedValue = map['tokenUrlParametersMap']; if (guardedValue == null) return null; return pulumi.Input.fromValue((guardedValue as Map).cast<String, String>()); })(),
  );
}