getById method

Future<CustomerModel> getById({
  1. required String id,
})

Implementation

Future<CustomerModel> getById({required String id}) async {
  var result = await apiResource.getById(id: id);
  return CustomerModel.fromMap(result);
}