linkDeliveryDeliveryMethodListFromJson function
List<LinkDeliveryDeliveryMethod>
linkDeliveryDeliveryMethodListFromJson(
- List? linkDeliveryDeliveryMethod, [
- List<
LinkDeliveryDeliveryMethod> ? defaultValue
Implementation
List<enums.LinkDeliveryDeliveryMethod> linkDeliveryDeliveryMethodListFromJson(
List? linkDeliveryDeliveryMethod, [
List<enums.LinkDeliveryDeliveryMethod>? defaultValue,
]) {
if (linkDeliveryDeliveryMethod == null) {
return defaultValue ?? [];
}
return linkDeliveryDeliveryMethod
.map((e) => linkDeliveryDeliveryMethodFromJson(e.toString()))
.toList();
}