toJson method

Map<String, dynamic> toJson()

Implementation

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