func (re *RailEdge) Marshal() {
    if re.O != nil {
        re.OwnerID = re.O.ID
    }
    if re.FromNode != nil {