toJson method
Implementation
core.Map<core.String, core.dynamic> toJson() => {
if (errors != null) 'errors': errors!,
if (lastEndTime != null) 'lastEndTime': lastEndTime!,
if (lastStartTime != null) 'lastStartTime': lastStartTime!,
if (state != null) 'state': state!,
if (trigger != null) 'trigger': trigger!,
};