toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (enterHibernationCount != null)
        'enterHibernationCount': enterHibernationCount!,
      if (enterPoweroffCount != null)
        'enterPoweroffCount': enterPoweroffCount!,
      if (enterSleepCount != null) 'enterSleepCount': enterSleepCount!,
      if (reportTime != null) 'reportTime': reportTime!,
      if (uptimeRuntimeDuration != null)
        'uptimeRuntimeDuration': uptimeRuntimeDuration!,
    };