toJson method
Implementation
@override
Object toJson() => {
if (vertexRagStore case final vertexRagStore?)
'vertexRagStore': vertexRagStore.toJson(),
'parent': parent,
if (contents.isNotDefault)
'contents': [for (final i in contents) i.toJson()],
if (model case final model?) 'model': model.toJson(),
};