Пример #1
0
        internal JsonObject ToJson()
        {
            var json = new JsonObject();

            json.AddIfValue("email", this.Email);
            json.AddIfValue("phone", this.Phone);
            json.AddIfValue("rfc", this.Rfc);

            return(json);
        }
Пример #2
0
        public JsonObject ToJson()
        {
            var json = new JsonObject();

            json.AddIfValue("name", this.Name);
            json.AddIfValue("notes", this.Notes);
            json.AddIfValue("contractClause", this.ContractClause);
            json.AddIfValue("legalBasis", this.LegalBasis);

            return(json);
        }
Пример #3
0
        public JsonObject ToJson()
        {
            var json = new JsonObject();

            json.Add("each", this.GetJsonForEachPart());

            if (this.DueOnType.HasValue)
            {
                json.Add("dueOn", this.GetJsonForDueOnPart());
            }

            json.AddIfValue("notes", this.Notes);

            return(json);
        }