crewRatingTypeListFromJson function

List<CrewRatingType> crewRatingTypeListFromJson(
  1. List? crewRatingType
)

Implementation

List<enums.CrewRatingType> crewRatingTypeListFromJson(List? crewRatingType) {
  if (crewRatingType == null) {
    return [];
  }

  return crewRatingType
      .map((e) => crewRatingTypeFromJson(e.toString()))
      .toList();
}