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