toMap method

Map toMap()

Converts this to Map

Primary use is repository object marshalling.

Implementation

Map toMap() => {
      "usecases": usecases.map((usecase) => usecase.value).toList(),
      "destinations": destinations
    };