phoneNumberTypeNullableListFromJson function
List<PhoneNumberType> ?
phoneNumberTypeNullableListFromJson(
- List? phoneNumberType, [
- List<
PhoneNumberType> ? defaultValue
Implementation
List<enums.PhoneNumberType>? phoneNumberTypeNullableListFromJson(
List? phoneNumberType, [
List<enums.PhoneNumberType>? defaultValue,
]) {
if (phoneNumberType == null) {
return defaultValue;
}
return phoneNumberType
.map((e) => phoneNumberTypeFromJson(e.toString()))
.toList();
}