WorkspaceAccessProperties.fromJson constructor

WorkspaceAccessProperties.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory WorkspaceAccessProperties.fromJson(Map<String, dynamic> json) {
  return WorkspaceAccessProperties(
    deviceTypeAndroid:
        (json['DeviceTypeAndroid'] as String?)?.toAccessPropertyValue(),
    deviceTypeChromeOs:
        (json['DeviceTypeChromeOs'] as String?)?.toAccessPropertyValue(),
    deviceTypeIos:
        (json['DeviceTypeIos'] as String?)?.toAccessPropertyValue(),
    deviceTypeOsx:
        (json['DeviceTypeOsx'] as String?)?.toAccessPropertyValue(),
    deviceTypeWeb:
        (json['DeviceTypeWeb'] as String?)?.toAccessPropertyValue(),
    deviceTypeWindows:
        (json['DeviceTypeWindows'] as String?)?.toAccessPropertyValue(),
    deviceTypeZeroClient:
        (json['DeviceTypeZeroClient'] as String?)?.toAccessPropertyValue(),
  );
}