factory PairedDevice.fromJson(Map<String, dynamic> json) { return PairedDevice( name: json['name'], hardwareAddress: json['hardwareAddress'], socketId: json['socketId']); }