Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
this.forEachClassProperty(c, 'none', (name, jsonName) =>
this.emitLine(`@"${stringEscape(jsonName)}": @"`, name, `",`)
)
this.forEachClassProperty(c, 'none', (propertyName, jsonKey, property) => {
if (!this.implicitlyConvertsToJSON(property.type)) {
const key = stringEscape(jsonKey)
const name = ['_', propertyName]
this.emitLine('@"', key, '": ', this.toDynamicExpression(property.type, name), ',')
}
})
})