GoogleCloudAiplatformV1SampleConfig.fromMap constructor

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

Implementation

factory GoogleCloudAiplatformV1SampleConfig.fromMap(Map<String, dynamic> map) {
  return GoogleCloudAiplatformV1SampleConfig(
    followingBatchSamplePercentage: (() { final guardedValue = map['followingBatchSamplePercentage']; if (guardedValue == null) return null; return pulumi.Input.fromValue(guardedValue as int); })(),
    initialBatchSamplePercentage: (() { final guardedValue = map['initialBatchSamplePercentage']; if (guardedValue == null) return null; return pulumi.Input.fromValue(guardedValue as int); })(),
    sampleStrategy: (() { final guardedValue = map['sampleStrategy']; if (guardedValue == null) return null; return pulumi.Input.fromValue(GoogleCloudAiplatformV1SampleConfigSampleStrategy.fromValue(guardedValue as String)); })(),
  );
}