src/transform/step.js
// Deserialize a step from its JSON representation.
Deserialize a step from its JSON representation.
Deserialize a step from its JSON representation .
static fromJSON(schema, json) {
    let impl = steps[json.type]
    return new Step(
      json.type,
      json.from && Pos.fromJSON(json.from),
      json.to && Pos.fromJSON(json.to),
      json.pos && Pos.fromJSON(json.pos),
      impl.paramFromJSON ? impl.paramFromJSON(schema, json.param) : json.param)
  }
static fromJSON ( schema , json ) { let impl = steps [ json . type ] return new Step ( json . type , json . from && Pos . fromJSON ( json . from ) , json . to && Pos . fromJSON ( json . to ) , json . pos && Pos . fromJSON ( json . pos ) , impl . paramFromJSON ? impl . paramFromJSON ( schema , json . param ) : json . param ) }
Deserialize a step from its JSON representation.
Deserialize a step from its JSON representation .