factory DevicePosture.fromJson(Map<String, dynamic> json) { return DevicePosture( type: DevicePostureType.fromJson(json['type'] as String), ); }