toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => <String, dynamic>{
      if (comment != null) 'comment': comment,
      'pricing_rule': pricingRule,
      'vendor_id': vendorId,
      if (deliveryAddress != null)
        'delivery_address_extended': deliveryAddress!.toJson(),
    };