List<String> phoneTypeListToJson(List<enums.PhoneType>? phoneType) { if (phoneType == null) { return []; } return phoneType.map((e) => enums.$PhoneTypeMap[e]!).toList(); }