toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final bytesPerHour = this.bytesPerHour;
  final strategy = this.strategy;
  return {
    if (bytesPerHour != null) 'BytesPerHour': bytesPerHour,
    if (strategy != null) 'Strategy': strategy,
  };
}