locationServiceAccessNullableListFromJson function

List<LocationServiceAccess>? locationServiceAccessNullableListFromJson(
  1. List? locationServiceAccess, [
  2. List<LocationServiceAccess>? defaultValue
])

Implementation

List<enums.LocationServiceAccess>? locationServiceAccessNullableListFromJson(
  List? locationServiceAccess, [
  List<enums.LocationServiceAccess>? defaultValue,
]) {
  if (locationServiceAccess == null) {
    return defaultValue;
  }

  return locationServiceAccess
      .map((e) => locationServiceAccessFromJson(e.toString()))
      .toList();
}