DehydratedDevice.fromJson(Map<String, dynamic> json) : deviceId = json['device_id'] as String, deviceData = (json['device_data'] as Map<String, dynamic>?)?.copy();