toJson method
Serializes this instance to a JSON-compatible map.
Used internally, not intended for direct use by consumers. The map structure may change without notice.
Implementation
Map<String, dynamic> toJson() {
final Map<String, dynamic> json = <String, dynamic>{};
json['shortDescription'] = shortDescription;
json['longDescription'] = longDescription;
json['sportType'] = sportType.id;
json['effortType'] = effortType.id;
json['bikeProfile'] = bikeProfile ?? BikeProfileElectricBikeProfile();
json['visibility'] = visibility.id;
return json;
}