toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() {
  var assignee = this.assignee;
  var groupIds = this.groupIds;
  var groups = this.groups;
  var reporter = this.reporter;
  var users = this.users;
  var voters = this.voters;
  var watchers = this.watchers;

  final json = <String, Object?>{};
  json[r'assignee'] = assignee;
  json[r'groupIds'] = groupIds;
  json[r'groups'] = groups.map((i) => i.toJson()).toList();
  json[r'reporter'] = reporter;
  json[r'users'] = users.map((i) => i.toJson()).toList();
  json[r'voters'] = voters;
  json[r'watchers'] = watchers;
  return json;
}