WAMapping v0.0.3 Release Notes
Release Date: 2016-02-29 // about 8 years ago-
- ➕ Added
WANSCodingStore
to the main header ➕ Added a way to register default mapping block for specific classes.
0️⃣ For example, you can now add a default mapping block to turnstrings
toNSDate
id(toDateMappingBlock)(id ) = id(id value) { if ([value isKindOfClass:[NSString class]]) { return [defaultDateFormatter dateFromString:value]; } return value; }; [mapper addDefaultMappingBlock:toDateMappingBlock forDestinationClass:[NSDate class]];
- ➕ Added