json-api-dart icon indicating copy to clipboard operation
json-api-dart copied to clipboard

Decode/Encode only Usage

Open EmirBostanci opened this issue 5 years ago • 4 comments

Greetings! First of all, thanks for caring the community and making your library open source!

My question is, is there a way to use decoding/encoding functionality without using http request functions?

Since example code is not defining this future, i wanted to ask for help :)

Thanks!

EmirBostanci avatar Jun 16 '20 15:06 EmirBostanci

hi @EmirBostanci. If I understand the question correctly, you want to use fromJson() and toJson() conversion methods on the document objects. What is your use case?

f3ath avatar Jun 19 '20 00:06 f3ath

My use case is, i only want to flatten/normalize json:api spec like objects. I want to use my own network/request management structure, but looking for an implementation to convert json objects. like this Japx library does. @f3ath

EmirBostanci avatar Jun 23 '20 12:06 EmirBostanci

Yes, in this case I'd expect the methods I mentioned above to fit your needs. Let me know if you find them (not) useful.

f3ath avatar Jun 24 '20 01:06 f3ath

Can you please prepare documentation, example or tests about these methods and their usages? @f3ath Thanks for help!

EmirBostanci avatar Jun 30 '20 14:06 EmirBostanci