DescribeRecoveryPointOutput.fromJson constructor

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

Implementation

factory DescribeRecoveryPointOutput.fromJson(Map<String, dynamic> json) {
  return DescribeRecoveryPointOutput(
    backupSizeInBytes: json['BackupSizeInBytes'] as int?,
    backupVaultArn: json['BackupVaultArn'] as String?,
    backupVaultName: json['BackupVaultName'] as String?,
    calculatedLifecycle: json['CalculatedLifecycle'] != null
        ? CalculatedLifecycle.fromJson(
            json['CalculatedLifecycle'] as Map<String, dynamic>)
        : null,
    completionDate: timeStampFromJson(json['CompletionDate']),
    createdBy: json['CreatedBy'] != null
        ? RecoveryPointCreator.fromJson(
            json['CreatedBy'] as Map<String, dynamic>)
        : null,
    creationDate: timeStampFromJson(json['CreationDate']),
    encryptionKeyArn: json['EncryptionKeyArn'] as String?,
    iamRoleArn: json['IamRoleArn'] as String?,
    isEncrypted: json['IsEncrypted'] as bool?,
    lastRestoreTime: timeStampFromJson(json['LastRestoreTime']),
    lifecycle: json['Lifecycle'] != null
        ? Lifecycle.fromJson(json['Lifecycle'] as Map<String, dynamic>)
        : null,
    recoveryPointArn: json['RecoveryPointArn'] as String?,
    resourceArn: json['ResourceArn'] as String?,
    resourceType: json['ResourceType'] as String?,
    sourceBackupVaultArn: json['SourceBackupVaultArn'] as String?,
    status: (json['Status'] as String?)?.toRecoveryPointStatus(),
    storageClass: (json['StorageClass'] as String?)?.toStorageClass(),
  );
}