Map<String, dynamic> toJson() => { "id": id, "next": List<dynamic>.from(next.map((x) => x.toJson())), "size": size == null ? null : size!.toJson(), };