addressPurposeLabelListFromJson function
List<AddressPurposeLabel>
addressPurposeLabelListFromJson(
- List? addressPurposeLabel, [
- List<
AddressPurposeLabel> ? defaultValue
Implementation
List<enums.AddressPurposeLabel> addressPurposeLabelListFromJson(
List? addressPurposeLabel, [
List<enums.AddressPurposeLabel>? defaultValue,
]) {
if (addressPurposeLabel == null) {
return defaultValue ?? [];
}
return addressPurposeLabel
.map((e) => addressPurposeLabelFromJson(e.toString()))
.toList();
}