StartSnapshotResponse.fromJson constructor
StartSnapshotResponse.fromJson(
- Map<String, dynamic> json
)
Implementation
factory StartSnapshotResponse.fromJson(Map<String, dynamic> json) {
return StartSnapshotResponse(
blockSize: json['BlockSize'] as int?,
description: json['Description'] as String?,
kmsKeyArn: json['KmsKeyArn'] as String?,
ownerId: json['OwnerId'] as String?,
parentSnapshotId: json['ParentSnapshotId'] as String?,
snapshotId: json['SnapshotId'] as String?,
startTime: timeStampFromJson(json['StartTime']),
status: (json['Status'] as String?)?.toStatus(),
tags: (json['Tags'] as List?)
?.whereNotNull()
.map((e) => Tag.fromJson(e as Map<String, dynamic>))
.toList(),
volumeSize: json['VolumeSize'] as int?,
);
}