toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final codeBuildServiceRole = this.codeBuildServiceRole;
  final image = this.image;
  final artifactName = this.artifactName;
  final computeType = this.computeType;
  final timeoutInMinutes = this.timeoutInMinutes;
  return {
    'CodeBuildServiceRole': codeBuildServiceRole,
    'Image': image,
    if (artifactName != null) 'ArtifactName': artifactName,
    if (computeType != null) 'ComputeType': computeType.toValue(),
    if (timeoutInMinutes != null) 'TimeoutInMinutes': timeoutInMinutes,
  };
}