createOrder method
Implementation
Future<ShopifyOrderCreatedResponse?> createOrder(
ShopifyOrder shopifyOrder) async {
try {
Response response =
await this.client.post("/order", data: shopifyOrder.toJson());
return ShopifyOrderCreatedResponse.fromJson(response.data);
} on Exception catch (e) {
logResponse(e.toString());
}
return null;
}