toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final command = this.command;
  final environment = this.environment;
  final instanceType = this.instanceType;
  final memory = this.memory;
  final resourceRequirements = this.resourceRequirements;
  final vcpus = this.vcpus;
  return {
    if (command != null) 'command': command,
    if (environment != null) 'environment': environment,
    if (instanceType != null) 'instanceType': instanceType,
    if (memory != null) 'memory': memory,
    if (resourceRequirements != null)
      'resourceRequirements': resourceRequirements,
    if (vcpus != null) 'vcpus': vcpus,
  };
}