toJson method

Map<String, dynamic> toJson()

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!,
    };