diff --git a/Sources/BranchSDK/BranchEvent.m b/Sources/BranchSDK/BranchEvent.m index 392cc9952..257d4524c 100644 --- a/Sources/BranchSDK/BranchEvent.m +++ b/Sources/BranchSDK/BranchEvent.m @@ -134,7 +134,7 @@ - (instancetype)initWithCoder:(NSCoder *)decoder { self = [super initWithCoder:decoder]; if (!self) return self; - self.serverURL = [decoder decodeObjectOfClass:NSString.class forKey:@"serverURL"]; + self.serverURL = [decoder decodeObjectOfClass:NSURL.class forKey:@"serverURL"]; self.eventDictionary = [decoder decodeObjectOfClass:NSDictionary.class forKey:@"eventDictionary"]; return self; }