toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final instanceType = this.instanceType;
  final sageMakerImageArn = this.sageMakerImageArn;
  final sageMakerImageVersionArn = this.sageMakerImageVersionArn;
  return {
    if (instanceType != null) 'InstanceType': instanceType.toValue(),
    if (sageMakerImageArn != null) 'SageMakerImageArn': sageMakerImageArn,
    if (sageMakerImageVersionArn != null)
      'SageMakerImageVersionArn': sageMakerImageVersionArn,
  };
}