earningsBreakdownCanonicalDescriptionListFromJson function
List<EarningsBreakdownCanonicalDescription>
earningsBreakdownCanonicalDescriptionListFromJson(
- List? earningsBreakdownCanonicalDescription, [
- List<
EarningsBreakdownCanonicalDescription> ? defaultValue
Implementation
List<enums.EarningsBreakdownCanonicalDescription>
earningsBreakdownCanonicalDescriptionListFromJson(
List? earningsBreakdownCanonicalDescription, [
List<enums.EarningsBreakdownCanonicalDescription>? defaultValue,
]) {
if (earningsBreakdownCanonicalDescription == null) {
return defaultValue ?? [];
}
return earningsBreakdownCanonicalDescription
.map((e) => earningsBreakdownCanonicalDescriptionFromJson(e.toString()))
.toList();
}