devicePlatformListFromJson function

List<DevicePlatform> devicePlatformListFromJson(
  1. List? devicePlatform
)

Implementation

List<enums.DevicePlatform> devicePlatformListFromJson(List? devicePlatform) {
  if (devicePlatform == null) {
    return [];
  }

  return devicePlatform
      .map((e) => devicePlatformFromJson(e.toString()))
      .toList();
}