CopyJob.fromJson constructor
CopyJob.fromJson(
- Map<String, dynamic> json
)
Implementation
factory CopyJob.fromJson(Map<String, dynamic> json) {
return CopyJob(
accountId: json['AccountId'] as String?,
backupSizeInBytes: json['BackupSizeInBytes'] as int?,
completionDate: timeStampFromJson(json['CompletionDate']),
copyJobId: json['CopyJobId'] as String?,
createdBy: json['CreatedBy'] != null
? RecoveryPointCreator.fromJson(
json['CreatedBy'] as Map<String, dynamic>)
: null,
creationDate: timeStampFromJson(json['CreationDate']),
destinationBackupVaultArn: json['DestinationBackupVaultArn'] as String?,
destinationRecoveryPointArn:
json['DestinationRecoveryPointArn'] as String?,
iamRoleArn: json['IamRoleArn'] as String?,
resourceArn: json['ResourceArn'] as String?,
resourceType: json['ResourceType'] as String?,
sourceBackupVaultArn: json['SourceBackupVaultArn'] as String?,
sourceRecoveryPointArn: json['SourceRecoveryPointArn'] as String?,
state: (json['State'] as String?)?.toCopyJobState(),
statusMessage: json['StatusMessage'] as String?,
);
}