GlacierJobDescription.fromJson constructor
GlacierJobDescription.fromJson(
- Map<String, dynamic> json
)
Implementation
factory GlacierJobDescription.fromJson(Map<String, dynamic> json) {
return GlacierJobDescription(
action: (json['Action'] as String?)?.toActionCode(),
archiveId: json['ArchiveId'] as String?,
archiveSHA256TreeHash: json['ArchiveSHA256TreeHash'] as String?,
archiveSizeInBytes: json['ArchiveSizeInBytes'] as int?,
completed: json['Completed'] as bool?,
completionDate: json['CompletionDate'] as String?,
creationDate: json['CreationDate'] as String?,
inventoryRetrievalParameters: json['InventoryRetrievalParameters'] != null
? InventoryRetrievalJobDescription.fromJson(
json['InventoryRetrievalParameters'] as Map<String, dynamic>)
: null,
inventorySizeInBytes: json['InventorySizeInBytes'] as int?,
jobDescription: json['JobDescription'] as String?,
jobId: json['JobId'] as String?,
jobOutputPath: json['JobOutputPath'] as String?,
outputLocation: json['OutputLocation'] != null
? OutputLocation.fromJson(
json['OutputLocation'] as Map<String, dynamic>)
: null,
retrievalByteRange: json['RetrievalByteRange'] as String?,
sHA256TreeHash: json['SHA256TreeHash'] as String?,
sNSTopic: json['SNSTopic'] as String?,
selectParameters: json['SelectParameters'] != null
? SelectParameters.fromJson(
json['SelectParameters'] as Map<String, dynamic>)
: null,
statusCode: (json['StatusCode'] as String?)?.toStatusCode(),
statusMessage: json['StatusMessage'] as String?,
tier: json['Tier'] as String?,
vaultARN: json['VaultARN'] as String?,
);
}