WorkspaceBundle.fromJson constructor
WorkspaceBundle.fromJson(
- Map<String, dynamic> json
)
Implementation
factory WorkspaceBundle.fromJson(Map<String, dynamic> json) {
return WorkspaceBundle(
bundleId: json['BundleId'] as String?,
computeType: json['ComputeType'] != null
? ComputeType.fromJson(json['ComputeType'] as Map<String, dynamic>)
: null,
description: json['Description'] as String?,
imageId: json['ImageId'] as String?,
lastUpdatedTime: timeStampFromJson(json['LastUpdatedTime']),
name: json['Name'] as String?,
owner: json['Owner'] as String?,
rootStorage: json['RootStorage'] != null
? RootStorage.fromJson(json['RootStorage'] as Map<String, dynamic>)
: null,
userStorage: json['UserStorage'] != null
? UserStorage.fromJson(json['UserStorage'] as Map<String, dynamic>)
: null,
);
}