windows7lake / json2dart

Android Studio plugin use for prasing json to dart class with safe type convert.
4 stars 0 forks source link

JSON Syntax Error #1

Closed g123k closed 3 years ago

g123k commented 3 years ago

Hello,

I have the following JSON file:

{
  "id": 5753709,
  "folder_id": 0,
  "type": "image",
  "name": "test.png",
  "full_size_url": "XXX",
  "thumbnail_url": "XXX",
  "size": 47199,
  "created_at": "2021-07-25T16:05:33+00:00",
  "created_by": "Édouard Marquez",
  "width": 1180,
  "height": 300,
  "_links": [
    {
      "rel": "self",
      "href": "https://us19.api.mailchimp.com/3.0/file-manager/files/5753709",
      "method": "GET",
      "targetSchema": "https://us19.api.mailchimp.com/schema/3.0/Definitions/FileManager/Files/Response.json"
    },
    {
      "rel": "update",
      "href": "https://us19.api.mailchimp.com/3.0/file-manager/files/5753709",
      "method": "PATCH",
      "targetSchema": "https://us19.api.mailchimp.com/schema/3.0/Definitions/FileManager/Files/Response.json",
      "schema": "https://us19.api.mailchimp.com/schema/3.0/Definitions/FileManager/Files/PATCH.json"
    },
    {
      "rel": "delete",
      "href": "https://us19.api.mailchimp.com/3.0/file-manager/files/5753709",
      "method": "DELETE",
      "targetSchema": "https://us19.api.mailchimp.com/schema/3.0/FileManager/Files/Instance.json"
    },
    {
      "rel": "parent",
      "href": "https://us19.api.mailchimp.com/3.0/file-manager/files",
      "method": "GET",
      "targetSchema": "https://us19.api.mailchimp.com/schema/3.0/Definitions/FileManager/Files/CollectionResponse.json",
      "schema": "https://us19.api.mailchimp.com/schema/3.0/Paths/FileManager/Files/Collection.json"
    }
  ]
}

And when I try to convert with your plugin, it fails with this error:

Screen Shot 2021-07-25 at 18 21 27
windows7lake commented 3 years ago

fix now #

windows7lake commented 3 years ago

please upgrade to 1.0.5