toJson method

Map<String, dynamic> toJson()

Implementation

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