phoneTypeListToJson function

List<String> phoneTypeListToJson(
  1. List<PhoneType>? phoneType
)

Implementation

List<String> phoneTypeListToJson(List<enums.PhoneType>? phoneType) {
  if (phoneType == null) {
    return [];
  }

  return phoneType.map((e) => enums.$PhoneTypeMap[e]!).toList();
}