LearnNewsExamplesServices
Frontmatter
id8241
title[Neural Link] Implement toJSON in data.Model
stateClosed
labels
enhancementai
assigneestobiu
createdAtDec 31, 2025, 5:01 PM
updatedAtDec 31, 2025, 5:10 PM
githubUrlhttps://github.com/neomjs/neo/issues/8241
authortobiu
commentsCount1
parentIssue8200
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtDec 31, 2025, 5:10 PM

[Neural Link] Implement toJSON in data.Model

Closed v11.18.0 enhancementai
tobiu
tobiu commented on Dec 31, 2025, 5:01 PM

Implement the toJSON method in src/data/Model.mjs to support the Neural Link serialization protocol.

It should return an object containing:

  • Properties from super.toJSON()
  • fields: A summary or the fields config
  • keyProperty
  • storeId
  • trackModifiedFields

Note: Records (data items) already have a toJSON method implemented in src/data/RecordFactory.mjs.

tobiu added the enhancement label on Dec 31, 2025, 5:01 PM
tobiu added the ai label on Dec 31, 2025, 5:01 PM
tobiu added parent issue #8200 on Dec 31, 2025, 5:01 PM
tobiu assigned to @tobiu on Dec 31, 2025, 5:04 PM
tobiu referenced in commit 35f26b6 - "feat(data): Implement toJSON in Model and Store for Neural Link (#8241, #8242)" on Dec 31, 2025, 5:08 PM
tobiu
tobiu Dec 31, 2025, 5:09 PM

Input from Gemini:

✦ I have implemented the toJSON method in src/data/Model.mjs. It returns:

{
    ...super.toJSON(),
    fields             : this.fields,
    keyProperty        : this.keyProperty,
    storeId            : this.storeId,
    trackModifiedFields: this.trackModifiedFields
}
tobiu closed this issue on Dec 31, 2025, 5:10 PM
tobiu referenced in commit c3bd5ac - "docs(issue): Close tickets #8241, #8242" on Dec 31, 2025, 5:33 PM