toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final maxJobDurationInSeconds = this.maxJobDurationInSeconds;
  final compute = this.compute;
  final dataSources = this.dataSources;
  final failureBehavior = this.failureBehavior;
  final iamRole = this.iamRole;
  final loggingConfig = this.loggingConfig;
  final outputLocation = this.outputLocation;
  final robotApplications = this.robotApplications;
  final simulationApplications = this.simulationApplications;
  final tags = this.tags;
  final useDefaultApplications = this.useDefaultApplications;
  final vpcConfig = this.vpcConfig;
  return {
    'maxJobDurationInSeconds': maxJobDurationInSeconds,
    if (compute != null) 'compute': compute,
    if (dataSources != null) 'dataSources': dataSources,
    if (failureBehavior != null) 'failureBehavior': failureBehavior.toValue(),
    if (iamRole != null) 'iamRole': iamRole,
    if (loggingConfig != null) 'loggingConfig': loggingConfig,
    if (outputLocation != null) 'outputLocation': outputLocation,
    if (robotApplications != null) 'robotApplications': robotApplications,
    if (simulationApplications != null)
      'simulationApplications': simulationApplications,
    if (tags != null) 'tags': tags,
    if (useDefaultApplications != null)
      'useDefaultApplications': useDefaultApplications,
    if (vpcConfig != null) 'vpcConfig': vpcConfig,
  };
}