AdministrativeAction.fromJson constructor

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

Implementation

factory AdministrativeAction.fromJson(Map<String, dynamic> json) {
  return AdministrativeAction(
    administrativeActionType: (json['AdministrativeActionType'] as String?)
        ?.toAdministrativeActionType(),
    failureDetails: json['FailureDetails'] != null
        ? AdministrativeActionFailureDetails.fromJson(
            json['FailureDetails'] as Map<String, dynamic>)
        : null,
    progressPercent: json['ProgressPercent'] as int?,
    requestTime: timeStampFromJson(json['RequestTime']),
    status: (json['Status'] as String?)?.toStatus(),
    targetFileSystemValues: json['TargetFileSystemValues'] != null
        ? FileSystem.fromJson(
            json['TargetFileSystemValues'] as Map<String, dynamic>)
        : null,
  );
}