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