toJson method
The serializer required by the ApiEndpoint.
Implementation
Map<String, dynamic> toJson() => {
'key': key.toString(),
'type': type.name,
'activity': activity,
'link': link,
'participants': participants.toString(),
'price': price.toStringAsFixed(2),
'accesibility': accessibility.toStringAsFixed(2)
};