core.Map<core.String, core.dynamic> toJson() => { if (layerId != null) 'layerId': layerId!, if (volumeAnnotationsVersion != null) 'volumeAnnotationsVersion': volumeAnnotationsVersion!, };