PaymentLinkUpdateOptionsLineItemsItem.fromJson constructor

PaymentLinkUpdateOptionsLineItemsItem.fromJson(
  1. Object? json
)

Implementation

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