InstancePatchState.fromJson constructor

InstancePatchState.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory InstancePatchState.fromJson(Map<String, dynamic> json) {
  return InstancePatchState(
    baselineId: json['BaselineId'] as String,
    instanceId: json['InstanceId'] as String,
    operation: (json['Operation'] as String).toPatchOperationType(),
    operationEndTime:
        nonNullableTimeStampFromJson(json['OperationEndTime'] as Object),
    operationStartTime:
        nonNullableTimeStampFromJson(json['OperationStartTime'] as Object),
    patchGroup: json['PatchGroup'] as String,
    failedCount: json['FailedCount'] as int?,
    installOverrideList: json['InstallOverrideList'] as String?,
    installedCount: json['InstalledCount'] as int?,
    installedOtherCount: json['InstalledOtherCount'] as int?,
    installedPendingRebootCount: json['InstalledPendingRebootCount'] as int?,
    installedRejectedCount: json['InstalledRejectedCount'] as int?,
    lastNoRebootInstallOperationTime:
        timeStampFromJson(json['LastNoRebootInstallOperationTime']),
    missingCount: json['MissingCount'] as int?,
    notApplicableCount: json['NotApplicableCount'] as int?,
    ownerInformation: json['OwnerInformation'] as String?,
    rebootOption: (json['RebootOption'] as String?)?.toRebootOption(),
    snapshotId: json['SnapshotId'] as String?,
    unreportedNotApplicableCount:
        json['UnreportedNotApplicableCount'] as int?,
  );
}