Skip to content

docs: Corrections to Custom serialization page#491

Open
developerjamiu wants to merge 1 commit into
mainfrom
docs/custom-serialization-fact-check
Open

docs: Corrections to Custom serialization page#491
developerjamiu wants to merge 1 commit into
mainfrom
docs/custom-serialization-fact-check

Conversation

@developerjamiu
Copy link
Copy Markdown
Contributor

Summary

  • Fixed toJson example: bare name:'name': (wouldn't compile as-is).
  • copyWith() moved out of required rules. It's only needed when the class is used as a field inside a generated .spy.yaml model (verified against test fixtures). Added dedicated section.
  • Recast "three simple rules" — the list had four items.
  • Added missing return type to second toJson example.
  • ### Implementation Example### Implementation example.

Test plan

  • Render locally and confirm the new section reads correctly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant