Skip to content
This repository has been archived by the owner on May 8, 2023. It is now read-only.

Add a global JSONX constant just like dart:convert's JSON #14

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

stevenroose
Copy link
Contributor

@stevenroose stevenroose commented May 17, 2016

In fact after this change the global encode() and decode() methods should be made private as well. They can be replaced with JSONX.encode() and JSONX.decode().

@jolleekin
Copy link
Owner

This is not working as T in JsonxCodec is now dynamic rather than null. I'll change the top level decode to check if type is null or dynamic.

P/S: Following the new coding guidelines, constants should be lowercase.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants