Json-to-Dart-Model icon indicating copy to clipboard operation
Json-to-Dart-Model copied to clipboard

[BUG] r@ doesnt work with object property

Open scapix opened this issue 4 months ago • 0 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

Current Behavior

using decorators with object properties, doesn't create dart models, removing r@ in "[email protected]" works, but settings member is not required in that instance

Expected Behavior

using @ decorators should work

Steps To Reproduce

No response

Version

v3.5.8

Relevant JSON syntax

{
  "__className": "test.model", // <- The base class name of the object.
  "r@id": "lib_c1u6t4p45c35rf0nzd",
  "r@name": "Main",
  "[email protected]":  [{
      "id": "fol_bev1zuxhb0j0s1wehr"
  }],
  "[email protected]": {
    "r@coverAspectRatio": 1
  }
}

Anything else?

No response

scapix avatar Oct 14 '24 10:10 scapix