paystubPayFrequencyListFromJson function
List<PaystubPayFrequency>
paystubPayFrequencyListFromJson(
- List? paystubPayFrequency, [
- List<
PaystubPayFrequency> ? defaultValue
Implementation
List<enums.PaystubPayFrequency> paystubPayFrequencyListFromJson(
List? paystubPayFrequency, [
List<enums.PaystubPayFrequency>? defaultValue,
]) {
if (paystubPayFrequency == null) {
return defaultValue ?? [];
}
return paystubPayFrequency
.map((e) => paystubPayFrequencyFromJson(e.toString()))
.toList();
}