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