toRequestObject method

  1. @override
dynamic toRequestObject()
override

Creates a map that the backend understands

Implementation

@override
toRequestObject() {
  return {
    fieldId: {
      '\$order': order.requestValue,
      '\$distanceTo': {
        'location': {
          'lat': location.latitude,
          'lon': location.longitude,
        }
      }
    }
  };
}