LicenseUse.fromMap constructor

LicenseUse.fromMap(
  1. Map<String, dynamic> map
)

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;