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