New post on /r/flutterdev subreddit:
Using Json serializable
I'm trying to use the json serializable package and I have it set up and everything, but I'm not sure how to use it... Do I just use the jsonencode and jsondecode functions from dart:convert?Edit: found it. My problem was that I was expecting jsonDecode to return the object, but you need to do YourClass.fromJson(jsonDecode(rawJsonString)
July 06, 2019 at 12:14AM by jlund24
https://ift.tt/2JfDtgr
Using Json serializable
I'm trying to use the json serializable package and I have it set up and everything, but I'm not sure how to use it... Do I just use the jsonencode and jsondecode functions from dart:convert?Edit: found it. My problem was that I was expecting jsonDecode to return the object, but you need to do YourClass.fromJson(jsonDecode(rawJsonString)
July 06, 2019 at 12:14AM by jlund24
https://ift.tt/2JfDtgr