bodyFormat function

Map<String, dynamic> bodyFormat(
  1. String tableName, {
  2. String command = "GetData",
  3. String selectQuery = "",
  4. String where = "",
})

Implementation

Map<String, dynamic> bodyFormat(String tableName,
    {String command = "GetData", String selectQuery = "", String where = ""}) {
  return {
    "UserId": 0,
    "TableName": tableName,
    "Command": command,
    "TotalRecord": 100,
    "PageNo": 1,
    "PageSize": 25,
    "UserGuid": 0,
    "ApiPacket": {
      "Packet": {
        "ModelName": tableName,
        "Select": selectQuery,
        "Where": where,
        "OrderBy": "",
        "IncludeChild": false
      },
      "PacketList": null
    }
  };
}