@override Object toJson() { return {'parent': parent, if (chunk != null) 'chunk': chunk!.toJson()}; }