TestOrderLineItem.fromJson constructor

TestOrderLineItem.fromJson(
  1. Map json_
)

Implementation

TestOrderLineItem.fromJson(core.Map json_)
    : this(
        product: json_.containsKey('product')
            ? TestOrderLineItemProduct.fromJson(
                json_['product'] as core.Map<core.String, core.dynamic>)
            : null,
        quantityOrdered: json_.containsKey('quantityOrdered')
            ? json_['quantityOrdered'] as core.int
            : null,
        returnInfo: json_.containsKey('returnInfo')
            ? OrderLineItemReturnInfo.fromJson(
                json_['returnInfo'] as core.Map<core.String, core.dynamic>)
            : null,
        shippingDetails: json_.containsKey('shippingDetails')
            ? OrderLineItemShippingDetails.fromJson(json_['shippingDetails']
                as core.Map<core.String, core.dynamic>)
            : null,
      );