Map<String, dynamic> toJson() { return { 'instance': instance, 'collection': collection, 'objects': objects, 'count': count, }; }