Map<String, dynamic> toJson() { final json = <String, dynamic>{}; if (next != null) { json[r'next'] = next; } json[r'self'] = self; if (prev != null) { json[r'prev'] = prev; } return json; }