Skip to content

Commit 60440e0

Browse files
committed
Making PRs is fun!
1 parent 592b44c commit 60440e0

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

bunq/sdk/context.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -256,21 +256,23 @@ def session_context(self):
256256

257257
def to_json(self):
258258
"""
259-
Serializes an ApiInstance to JSON data
259+
Serializes an ApiContext to JSON string
260260
261261
:rtype: str
262262
"""
263+
263264
return converter.class_to_json(self)
264265

265266
@classmethod
266267
def from_json(cls, data):
267268
"""
268-
Creates an ApiContext instance from JSON data
269+
Creates an ApiContext instance from JSON string.
269270
270271
:type data: str
271272
272273
:rtype: ApiContext
273274
"""
275+
274276
return converter.json_to_class(ApiContext, data)
275277

276278
def save(self, path=None):

0 commit comments

Comments
 (0)