toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
    json[r'items'] = this.items;
  if (this.pagination != null) {
    json[r'pagination'] = this.pagination;
  } else {
    json[r'pagination'] = null;
  }
  if (this.nextCursor != null) {
    json[r'nextCursor'] = this.nextCursor;
  } else {
    json[r'nextCursor'] = null;
  }
  if (this.details != null) {
    json[r'details'] = this.details;
  } else {
    json[r'details'] = null;
  }
  return json;
}