Skip to content

Commit

Permalink
Making PRs is fun!
Browse files Browse the repository at this point in the history
  • Loading branch information
PJUllrich committed Aug 15, 2017
1 parent 592b44c commit 60440e0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions bunq/sdk/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,21 +256,23 @@ def session_context(self):

def to_json(self):
"""
Serializes an ApiInstance to JSON data
Serializes an ApiContext to JSON string
:rtype: str
"""

return converter.class_to_json(self)

@classmethod
def from_json(cls, data):
"""
Creates an ApiContext instance from JSON data
Creates an ApiContext instance from JSON string.
:type data: str
:rtype: ApiContext
"""

return converter.json_to_class(ApiContext, data)

def save(self, path=None):
Expand Down

0 comments on commit 60440e0

Please sign in to comment.