Skip to content

Commit ec56420

Browse files
committed
update README
1 parent c8a6966 commit ec56420

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,10 @@ classes out of the box:
115115
### Creating an object with a typed array
116116

117117
```swift
118+
// `Model` subclasses get `fromJSON` and `toJSON` implementations on `JSONTransformable` for free,
119+
// but explicit `JSONTransformable` conformance is still required
120+
extension Vehicle: JSONTransformable {}
121+
118122
class Vehicles: Model {
119123
let vehicles = PropertyArray<Vehicle>(key: "vehicles")
120124
}

0 commit comments

Comments
 (0)