toJSON method

dynamic toJSON([
  1. List<String> propertiesToInclude
])

http://fabricjs.com/docs/fabric.Canvas.html#toJSON Returns Object representation of canvas this alias is provided because if you call JSON.stringify on an instance, the toJSON object will be invoked if it exists. Having a toJSON method means you can do JSON.stringify(myCanvas) propertiesToInclude Array

Implementation

external toJSON([List<String> propertiesToInclude]);