locationServiceAccessListFromJson function
- List? locationServiceAccess, [
- List<
LocationServiceAccess> ? defaultValue
Implementation
List<enums.LocationServiceAccess> locationServiceAccessListFromJson(
List? locationServiceAccess, [
List<enums.LocationServiceAccess>? defaultValue,
]) {
if (locationServiceAccess == null) {
return defaultValue ?? [];
}
return locationServiceAccess
.map((e) => locationServiceAccessFromJson(e.toString()))
.toList();
}