DescribeWorkspaceSnapshotsResult.fromJson constructor
DescribeWorkspaceSnapshotsResult.fromJson(
- Map<String, dynamic> json
)
Implementation
factory DescribeWorkspaceSnapshotsResult.fromJson(Map<String, dynamic> json) {
return DescribeWorkspaceSnapshotsResult(
rebuildSnapshots: (json['RebuildSnapshots'] as List?)
?.whereNotNull()
.map((e) => Snapshot.fromJson(e as Map<String, dynamic>))
.toList(),
restoreSnapshots: (json['RestoreSnapshots'] as List?)
?.whereNotNull()
.map((e) => Snapshot.fromJson(e as Map<String, dynamic>))
.toList(),
);
}