MysqlProfile.fromMap constructor

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

Implementation

factory MysqlProfile.fromMap(Map<String, dynamic> map) {
  return MysqlProfile(
    hostname: pulumi.Input.fromValue(map['hostname'] as String),
    password: pulumi.Input.fromValue(map['password'] as String),
    port: (() { final guardedValue = map['port']; if (guardedValue == null) return null; return pulumi.Input.fromValue(guardedValue as int); })(),
    sslConfig: (() { final guardedValue = map['sslConfig']; if (guardedValue == null) return null; return pulumi.Input.fromValue(MysqlSslConfig.fromMap((guardedValue as Map).cast<String, dynamic>())); })(),
    username: pulumi.Input.fromValue(map['username'] as String),
  );
}