PaymentLinkLineItemsItem.fromJson constructor
PaymentLinkLineItemsItem.fromJson(
- Object? json
Implementation
factory PaymentLinkLineItemsItem.fromJson(Object? json) {
final map = (json as Map).cast<String, Object?>();
return PaymentLinkLineItemsItem(
adjustableQuantity: map['adjustable_quantity'] == null
? null
: SessionAdjustableQuantity.fromJson(map['adjustable_quantity']),
price: (map['price'] as String),
quantity: (map['quantity'] as num).toInt(),
);
}