public JsonSerializationOptions(JsonSerializationOptions options)
        {
            if (options != null)
            {
                this.IgnoreNullObjects      = options.IgnoreNullObjects;
                this.IgnoreEmptyStrings     = options.IgnoreEmptyStrings;
                this.ConvertEnumsToString   = options.ConvertEnumsToString;
                this.IgnoreEmptyCollections = options.IgnoreEmptyCollections;

                this.UseIndentation = options.UseIndentation;
                this.Indent         = options.Indent;
                this.CurrentIndent  = options.CurrentIndent + Indent;
            }
        }
 public static JsonSerializationOptions From(JsonSerializationOptions options)
 {
     return(new JsonSerializationOptions(options));
 }