LicenseUse.fromMap constructor
Construct a LicenseUse from a map
.
Primary use is repository object marshalling.
Implementation
LicenseUse.fromMap(Map<String, dynamic> map)
: usecases = map["usecases"]
.map<LicenseUsecase>((usecase) => LicenseUsecase.from(usecase))
.toList(),
destinations = map["destinations"] != null
? List<String>.from(map["destinations"])
: null;