toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() {
  var maxResults = this.maxResults;
  var startAt = this.startAt;
  var total = this.total;
  var worklogs = this.worklogs;

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