toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final id = this.id;
  final failedCount = this.failedCount;
  final installedCount = this.installedCount;
  final installedOtherCount = this.installedOtherCount;
  final installedPendingReboot = this.installedPendingReboot;
  final installedRejectedCount = this.installedRejectedCount;
  final missingCount = this.missingCount;
  final operation = this.operation;
  final operationEndTime = this.operationEndTime;
  final operationStartTime = this.operationStartTime;
  final rebootOption = this.rebootOption;
  return {
    'Id': id,
    if (failedCount != null) 'FailedCount': failedCount,
    if (installedCount != null) 'InstalledCount': installedCount,
    if (installedOtherCount != null)
      'InstalledOtherCount': installedOtherCount,
    if (installedPendingReboot != null)
      'InstalledPendingReboot': installedPendingReboot,
    if (installedRejectedCount != null)
      'InstalledRejectedCount': installedRejectedCount,
    if (missingCount != null) 'MissingCount': missingCount,
    if (operation != null) 'Operation': operation,
    if (operationEndTime != null) 'OperationEndTime': operationEndTime,
    if (operationStartTime != null) 'OperationStartTime': operationStartTime,
    if (rebootOption != null) 'RebootOption': rebootOption,
  };
}