org.allenai.nlpstack.parse.poly.fsm.StateTransition
Boilerplate code to serialize a Transition to JSON using Spray.
NOTE: If a subclass has a field named type, this will fail to serialize.
type
NOTE: IF YOU INHERIT FROM Transition, THEN YOU MUST MODIFY THESE SUBROUTINES IN ORDER TO CORRECTLY EMPLOY JSON SERIALIZATION FOR YOUR NEW SUBCLASS.
Boilerplate code to serialize a Transition to JSON using Spray.
NOTE: If a subclass has a field named
type
, this will fail to serialize.NOTE: IF YOU INHERIT FROM Transition, THEN YOU MUST MODIFY THESE SUBROUTINES IN ORDER TO CORRECTLY EMPLOY JSON SERIALIZATION FOR YOUR NEW SUBCLASS.