purposesAsJson method

Map<String, dynamic>? purposesAsJson()

Implementation

Map<String, dynamic>? purposesAsJson() => purposes?.map((key, value) => MapEntry(key, value.toJson()));