frame_transpiler icon indicating copy to clipboard operation
frame_transpiler copied to clipboard

Operations Block for public methods (including static)

Open frame-lang opened this issue 2 years ago • 0 comments

#[derive(marshal)]
#TrafficLight

    -actions-

    -operations-

    marshal : JSON {
        ^(jsonpickle.encode(self))
    }

    // static method attribute
    #[static]
    unmarshal : #TrafficLight  {
        ^(jsonpickle.decode(data))
    }
 
    -domain-
##

frame-lang avatar Dec 10 '23 15:12 frame-lang