toPurposes static method

List<Purpose> toPurposes(
  1. List rawList
)

Convert a list of dictionaries into a list of purposes.

Implementation

static List<Purpose> toPurposes(List<dynamic> rawList) => rawList.map((e) => Purpose.fromJson(e)).toList();