bodyFormatDriver function

Map<String, dynamic> bodyFormatDriver(
  1. CoordinateRF coord,
  2. double radius
)

Implementation

Map<String, dynamic> bodyFormatDriver(
  CoordinateRF coord,
  double radius,
) {
  return {
    "UserId": 0,
    "TableName": "GetAvailableDrivers",
    "Command": "GetData",
    "TotalRecord": 100,
    "PageNo": 1,
    "PageSize": 25,
    "UserGuid": 0,
    "ApiPacket": {
      "Packet": {
        "Lat": coord.lat,
        "Lng": coord.lng,
        "Radius": radius,
      },
      "PacketList": null
    }
  };
}