Map<String, dynamic> toJson() => { "self": List<dynamic>.from(self!.map((x) => x.toJson())), "collection": List<dynamic>.from(collection!.map((x) => x.toJson())), };