toJson method

Map<String, Object?> toJson()

Implementation

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

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