toJson method
Implementation
Map<String, dynamic> toJson() {
return {
JsonKeys.id: id,
JsonKeys.radius: radius,
JsonKeys.coordinates: coordinates
.map((e) => {
JsonKeys.latitude: e.latitude.degrees,
JsonKeys.longitude: e.longitude.degrees,
})
.toList(),
JsonKeys.notificationResponsivenessMs: notificationResponsivenessMs,
};
}