toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  var data = <String, dynamic>{};
  data['total'] = total;
  if (items != null) {
    data['items'] = items
        .map((v) => {
              if (v is QWItems) {v.toJson()} else {null}
            })
        .toList();
  }
  if (filters != null) {
    data['filters'] = filters.toJson();
  }
  return data;
}