toJson method
Implementation
Map<String, dynamic> toJson() {
final maxCapacity = this.maxCapacity;
final minCapacity = this.minCapacity;
return {
if (maxCapacity != null) 'MaxCapacity': maxCapacity,
if (minCapacity != null) 'MinCapacity': minCapacity,
};
}