public JSONRCListNavigation_PageNumberRecord(RCListNavigation_PageNumberRecord s, IBehaviorsConfiguration config) { if (config.DefaultValuesBehavior == DefaultValuesBehavior.DontSend) { AttrListNavigation_PageNumber = ConvertToRestWithoutDefaults(s.ssSTListNavigation_PageNumber, new STListNavigation_PageNumberStructure(null), ssContactManager.RestRecords.JSONSTListNavigation_PageNumberStructure.FromStructureDelegate(config)); } else { AttrListNavigation_PageNumber = ssContactManager.RestRecords.JSONSTListNavigation_PageNumberStructure.FromStructure(s.ssSTListNavigation_PageNumber, config); } }
public static STListNavigation_PageNumberStructure ToStructure(ssContactManager.RestRecords.JSONSTListNavigation_PageNumberStructure obj, IBehaviorsConfiguration config) { STListNavigation_PageNumberStructure s = new STListNavigation_PageNumberStructure(null); if (obj != null) { s.ssNumber = obj.AttrNumber == null ? "": obj.AttrNumber; s.ssIndex = obj.AttrIndex == null ? 0: obj.AttrIndex.Value; s.ssIsCurrent = obj.AttrIsCurrent == null ? false: obj.AttrIsCurrent.Value; } return(s); }