totalCanonicalDescriptionListFromJson function
List<TotalCanonicalDescription>
totalCanonicalDescriptionListFromJson(
- List? totalCanonicalDescription, [
- List<
TotalCanonicalDescription> ? defaultValue
Implementation
List<enums.TotalCanonicalDescription> totalCanonicalDescriptionListFromJson(
List? totalCanonicalDescription, [
List<enums.TotalCanonicalDescription>? defaultValue,
]) {
if (totalCanonicalDescription == null) {
return defaultValue ?? [];
}
return totalCanonicalDescription
.map((e) => totalCanonicalDescriptionFromJson(e.toString()))
.toList();
}