toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() {
  var hierarchy = this.hierarchy;
  var projectId = this.projectId;

  final json = <String, Object?>{};
  json[r'hierarchy'] = hierarchy.map((i) => i.toJson()).toList();
  if (projectId != null) {
    json[r'projectId'] = projectId;
  }
  return json;
}