MCPcopy Create free account
hub / github.com/cryptii/cryptii / serializeValues

Method serializeValues

src/Form.js:237–243  ·  view source on GitHub ↗

* Serializes visible field values to a JSON serializable object. * @throws {Error} If serialization is not possible. * @return {mixed} Serialized data

()

Source from the content-addressed store, hash-verified

235 * @return {mixed} Serialized data
236 */
237 serializeValues () {
238 const data = {}
239 this.getVisibleFields().forEach(field => {
240 data[field.getName()] = field.serializeValue()
241 })
242 return data
243 }
244
245 /**
246 * Extracts field values serialized by {@link Form.serializeValues} and

Callers 1

serializeMethod · 0.80

Calls 3

getVisibleFieldsMethod · 0.95
getNameMethod · 0.45
serializeValueMethod · 0.45

Tested by

no test coverage detected