expirationDateListFromJson function
List<ExpirationDate>
expirationDateListFromJson(
- List? expirationDate, [
- List<
ExpirationDate> ? defaultValue
Implementation
List<enums.ExpirationDate> expirationDateListFromJson(
List? expirationDate, [
List<enums.ExpirationDate>? defaultValue,
]) {
if (expirationDate == null) {
return defaultValue ?? [];
}
return expirationDate
.map((e) => expirationDateFromJson(e.toString()))
.toList();
}