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