| 11 | |
| 12 | def test_serializable(): |
| 13 | class Location(Model): |
| 14 | country_code = StringType() |
| 15 | |
| 16 | @serializable |
| 17 | def country_name(self): |
| 18 | return "United States" if self.country_code == "US" else "Unknown" |
| 19 | |
| 20 | location_US = Location({"country_code": "US"}) |
| 21 |
searching dependent graphs…