phoneNumberTypeListFromJson function

List<PhoneNumberType> phoneNumberTypeListFromJson(
  1. List? phoneNumberType
)

Implementation

List<enums.PhoneNumberType> phoneNumberTypeListFromJson(List? phoneNumberType) {
  if (phoneNumberType == null) {
    return [];
  }

  return phoneNumberType
      .map((e) => phoneNumberTypeFromJson(e.toString()))
      .toList();
}