toJson method
Implementation
Map<String, dynamic> toJson() {
final deviceTypeAndroid = this.deviceTypeAndroid;
final deviceTypeChromeOs = this.deviceTypeChromeOs;
final deviceTypeIos = this.deviceTypeIos;
final deviceTypeOsx = this.deviceTypeOsx;
final deviceTypeWeb = this.deviceTypeWeb;
final deviceTypeWindows = this.deviceTypeWindows;
final deviceTypeZeroClient = this.deviceTypeZeroClient;
return {
if (deviceTypeAndroid != null)
'DeviceTypeAndroid': deviceTypeAndroid.toValue(),
if (deviceTypeChromeOs != null)
'DeviceTypeChromeOs': deviceTypeChromeOs.toValue(),
if (deviceTypeIos != null) 'DeviceTypeIos': deviceTypeIos.toValue(),
if (deviceTypeOsx != null) 'DeviceTypeOsx': deviceTypeOsx.toValue(),
if (deviceTypeWeb != null) 'DeviceTypeWeb': deviceTypeWeb.toValue(),
if (deviceTypeWindows != null)
'DeviceTypeWindows': deviceTypeWindows.toValue(),
if (deviceTypeZeroClient != null)
'DeviceTypeZeroClient': deviceTypeZeroClient.toValue(),
};
}