toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (creationDate != null) 'creationDate': creationDate!,
      if (deliveryDate != null) 'deliveryDate': deliveryDate!,
      if (returnMethodType != null) 'returnMethodType': returnMethodType!,
      if (shipmentId != null) 'shipmentId': shipmentId!,
      if (shipmentTrackingInfos != null)
        'shipmentTrackingInfos': shipmentTrackingInfos!,
      if (shippingDate != null) 'shippingDate': shippingDate!,
      if (state != null) 'state': state!,
    };