From 87b8f1c710c7c94ed9c1b040f75c1601591a214b Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Sun, 4 Nov 2018 17:25:41 -0800 Subject: to_json() method for fatcatrelease --- python/fatcat/release_model.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/python/fatcat/release_model.py b/python/fatcat/release_model.py index a584c00b..aa0d2d9f 100644 --- a/python/fatcat/release_model.py +++ b/python/fatcat/release_model.py @@ -1,5 +1,6 @@ from fatcat_client.models import ReleaseEntity +from fatcat_client.api_client import ApiClient class FatcatRelease(ReleaseEntity): """ @@ -83,3 +84,7 @@ class FatcatRelease(ReleaseEntity): contrib_names.append(c.raw_name) t['contrib_names'] = contrib_names return t + + def to_json(self): + ac = ApiClient() + return ac.sanitize_for_serialization(self) -- cgit v1.2.3