toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final deliveryUri = this.deliveryUri;
  final endpointTypes = this.endpointTypes;
  return {
    'DeliveryUri': deliveryUri,
    if (endpointTypes != null)
      'EndpointTypes': endpointTypes.map((e) => e.toValue()).toList(),
  };
}