2 // SOSTrustedDeviceAttributes.m
7 #import "SOSTrustedDeviceAttributes.h"
10 @implementation SOSTrustedDeviceAttributes
12 + (BOOL)supportsSecureCoding { return YES; }
14 - (instancetype)initWithCoder:(NSCoder *)aDecoder {
15 if(self = [super init]) {
16 _machineID = [aDecoder decodeObjectOfClass:[NSString class] forKey:MACHINEID];
17 _serialNumber = [aDecoder decodeObjectOfClass:[NSString class] forKey:SERIALNUMBER];
22 - (void)encodeWithCoder:(NSCoder *)coder {
23 [coder encodeObject:_machineID forKey:MACHINEID];
24 [coder encodeObject:_serialNumber forKey:SERIALNUMBER];