Map<String, dynamic> toJson() { final _json = <String, dynamic>{}; if (hasNext != null) { _json[r'has_next'] = hasNext; } _json[r'items'] = items; return _json; }