createAsset method

Future createAsset(
  1. dynamic merchantId,
  2. dynamic file,
  3. dynamic name,
  4. dynamic description,
)

createAsset

Implementation

Future createAsset(merchantId,file,name,description) async {
  var data = {
    'merchant_id': merchantId,
    'file': file,
    'name': name,
    'description': description,
  };
  var apiResponse = await post("/merchant/assets/create", data);
  return apiResponse;
}