toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (deliverByDate != null) 'deliverByDate': deliverByDate!,
      if (method != null) 'method': method!,
      if (pickupPromiseInMinutes != null)
        'pickupPromiseInMinutes': pickupPromiseInMinutes!,
      if (shipByDate != null) 'shipByDate': shipByDate!,
      if (type != null) 'type': type!,
    };