data-transformations.txt 465 B

123456789101112131415161718192021222324252627282930313233
  1. Raw model ...
  2. {
  3. a: "Value 1",
  4. b: "Value 2",
  5. c: "Value 3"
  6. }
  7. Goes to ...
  8. {
  9. a: { name: "a", value: "Value 1" },
  10. b: { name: "b", value: "Value 2" },
  11. c: { name: "c", value: "Value 3" }
  12. }
  13. Merges with lazy metadata ...
  14. {
  15. b: { type: "checkbutton" },
  16. c: { label: "Property Three" }
  17. }
  18. Giving ...
  19. {
  20. a: { name: "a", value: "Value 1" },
  21. b: { name: "b", value: "Value 2", type: "checkbutton" },
  22. c: { name: "c", value: "Value 3", label: "Property Three" }
  23. }