toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final onDemandSpecification = this.onDemandSpecification;
  final spotSpecification = this.spotSpecification;
  return {
    if (onDemandSpecification != null)
      'OnDemandSpecification': onDemandSpecification,
    if (spotSpecification != null) 'SpotSpecification': spotSpecification,
  };
}