put method

Future<CustomerModel> put({
  1. required String id,
  2. required CustomerModel model,
})

Implementation

Future<CustomerModel> put({required String id, required CustomerModel model}) async {
  var result = await apiResource.put(id: id, data: model.toMap());
  return CustomerModel.fromMap(result);
}