/// <summary> /// Complex type members is to be de-serialized to object from json and clear the properties. /// </summary> public void DeSerializeAndClearObjectsFromJson() { if (!string.IsNullOrEmpty(this.AuxRegDisposition)) { this.Disposition = JsonSerialization.DeserializeString <RegistrationDisposition>(this.AuxRegDisposition); } if (!string.IsNullOrEmpty(this.AuxRegistrant)) { this.registrant = JsonSerialization.DeserializeString <VCard>(this.AuxRegistrant); } if (!string.IsNullOrEmpty(this.AuxContact)) { this.contact = JsonSerialization.DeserializeString <VCard>(this.AuxContact); } if (this.AuxPointsArea != null) { this.pointsArea = JsonSerialization.DeserializeString <Position[]>(this.AuxPointsArea); } if (this.AuxQuadPoints != null) { this.QuadrilateralArea = JsonSerialization.DeserializeString <QuadrilateralArea[]>(this.AuxQuadPoints); } if (!string.IsNullOrEmpty(this.AuxTvSpectrum)) { this.callSign = JsonSerialization.DeserializeString <TvSpectrum>(this.AuxTvSpectrum); } if (!string.IsNullOrEmpty(this.AuxEvent)) { this.auxEvent = JsonSerialization.DeserializeString <Event>(this.AuxEvent); } if (this.callSign != null && this.callSign.Channel.HasValue) { this.Channel = this.callSign.Channel.Value; } this.AuxRegDisposition = string.Empty; this.AuxRegistrant = string.Empty; this.AuxContact = string.Empty; this.AuxPointsArea = string.Empty; this.AuxQuadPoints = string.Empty; this.AuxTvSpectrum = string.Empty; this.AuxEvent = string.Empty; }
/// <summary> /// Complex type members is to be de-serialized to object from json. /// </summary> public void DeSerializeObjectsFromJson() { this.Disposition = JsonSerialization.DeserializeString <RegistrationDisposition>(this.AuxRegDisposition); this.registrant = JsonSerialization.DeserializeString <VCard>(this.AuxRegistrant); this.contact = JsonSerialization.DeserializeString <VCard>(this.AuxContact); if (this.AuxPointsArea != null) { this.pointsArea = JsonSerialization.DeserializeString <Position[]>(this.AuxPointsArea); } if (this.AuxQuadPoints != null) { this.QuadrilateralArea = JsonSerialization.DeserializeString <QuadrilateralArea[]>(this.AuxQuadPoints); } this.callSign = JsonSerialization.DeserializeString <TvSpectrum>(this.AuxTvSpectrum); this.auxEvent = JsonSerialization.DeserializeString <Event>(this.AuxEvent); this.Channel = this.callSign.Channel.Value; }