CustomDeliveryConfiguration.fromJson constructor

CustomDeliveryConfiguration.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory CustomDeliveryConfiguration.fromJson(Map<String, dynamic> json) {
  return CustomDeliveryConfiguration(
    deliveryUri: json['DeliveryUri'] as String,
    endpointTypes: (json['EndpointTypes'] as List?)
        ?.whereNotNull()
        .map((e) => (e as String).toEndpointTypesElement())
        .toList(),
  );
}