line / centraldogma-python

Python client library for Central Dogma
https://line.github.io/centraldogma-python/
Apache License 2.0
19 stars 9 forks source link

Use `from_dict` of `@dataclass` instread of `from_json` #8

Closed ikhoon closed 3 years ago

ikhoon commented 3 years ago

Motivation:

If a data is already parsed and the type is dictionary, @dataclass_json can directly decode the dictionary into an object.

Modifications:

Result:

Opitimized implementations

ikhoon commented 3 years ago

I'm late. Sorry. 😄