toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (cycleNumber != null) 'cycleNumber': cycleNumber!,
      if (endTime != null) 'endTime': endTime!,
      if (error != null) 'error': error!,
      if (name != null) 'name': name!,
      if (progressPercent != null) 'progressPercent': progressPercent!,
      if (startTime != null) 'startTime': startTime!,
      if (state != null) 'state': state!,
      if (steps != null) 'steps': steps!,
      if (totalPauseDuration != null)
        'totalPauseDuration': totalPauseDuration!,
      if (warnings != null) 'warnings': warnings!,
    };