toJson method

Map<String, Object?> toJson()

Implementation

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

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