toJson method

  1. @override
Map<String, Object?> toJson()

Implementation

@override
Map<String, Object?> toJson() => {
      if (destinations != null) "destinations": encodeValue(destinations),
      if (fxEnabled != null) "fx_enabled": encodeValue(fxEnabled),
      if (id != null) "id": encodeValue(id),
      'limits': encodeValue(limits),
      if (schedule != null) "schedule": encodeValue(schedule),
    };