Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions YYModel/NSObject+YYModel.h
Original file line number Diff line number Diff line change
Expand Up @@ -321,9 +321,9 @@ NS_ASSUME_NONNULL_BEGIN

@interface YYAttributes
@property NSString *name;
@property NSArray *shadows;
@property NSSet *borders;
@property NSDictionary *attachments;
@property NSArray <YYShadow *> *shadows;
@property NSSet <YYBorder *> *borders;
@property NSDictionary <NSString *, YYAttachment *> *attachments;
@end

@implementation YYAttributes
Expand Down
1 change: 1 addition & 0 deletions YYModel/NSObject+YYModel.m
Original file line number Diff line number Diff line change
Expand Up @@ -1205,6 +1205,7 @@ static id ModelToJSONObjectRecursive(NSObject *model) {
if ([model isKindOfClass:[NSAttributedString class]]) return ((NSAttributedString *)model).string;
if ([model isKindOfClass:[NSDate class]]) return [YYISODateFormatter() stringFromDate:(id)model];
if ([model isKindOfClass:[NSData class]]) return nil;
if ([model isKindOfClass:[NSValue class]]) return model;


_YYModelMeta *modelMeta = [_YYModelMeta metaWithClass:[model class]];
Expand Down