create method
Future<CustomerModel>
create({
- required CustomerRequestMessage request,
- String customApiToken = '',
Implementation
Future<CustomerModel> create({
required CustomerRequestMessage request,
String customApiToken = '',
}) async {
var result = await apiResource.post(data: request.toMap(), apiUserToken: customApiToken);
return CustomerModel.fromMap(result);
}