CatalogWithPriceReferenceInput.fromJson constructor

CatalogWithPriceReferenceInput.fromJson(
  1. Map<String, Object?> json
)

Implementation

factory CatalogWithPriceReferenceInput.fromJson(
  Map<String, Object?> json,
) =>
    CatalogWithPriceReferenceInput(
      priceId: json["price_id"] as String,
      productId: json["product_id"] as String,
      quantity: (json["quantity"] as num).toInt(),
    );