[Csharp] Bugfix: Updated all C# templates ToJson method not to conflict reference withmodel properties (#8087)

* Updated all C# templates ToJson method not to conflict reference with model properties.

* update samples

Co-authored-by: William Cheng <wing328hk@gmail.com>
This commit is contained in:
Sampo Kivistö 2020-12-08 11:12:40 +02:00 committed by GitHub
parent f9d6c6fb21
commit d1ea6ac839
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
245 changed files with 245 additions and 245 deletions

View File

@ -72,7 +72,7 @@ namespace {{packageName}}.Models
/// <returns>JSON string presentation of the object</returns> /// <returns>JSON string presentation of the object</returns>
public {{#parent}}{{^isMap}}{{^isArray}}new {{/isArray}}{{/isMap}}{{/parent}}string ToJson() public {{#parent}}{{^isMap}}{{^isArray}}new {{/isArray}}{{/isMap}}{{/parent}}string ToJson()
{ {
return JsonConvert.SerializeObject(this, Formatting.Indented); return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
} }
/// <summary> /// <summary>

View File

@ -75,7 +75,7 @@ namespace {{modelPackage}}
/// <returns>JSON string presentation of the object</returns> /// <returns>JSON string presentation of the object</returns>
public {{#parent}}{{^isMap}}{{^isArray}}new {{/isArray}}{{/isMap}}{{/parent}}string ToJson() public {{#parent}}{{^isMap}}{{^isArray}}new {{/isArray}}{{/isMap}}{{/parent}}string ToJson()
{ {
return JsonConvert.SerializeObject(this, Formatting.Indented); return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
} }
/// <summary> /// <summary>

View File

@ -75,7 +75,7 @@ namespace {{modelPackage}}
/// <returns>JSON string presentation of the object</returns> /// <returns>JSON string presentation of the object</returns>
public {{#parent}}{{^isMap}}{{^isArray}}new {{/isArray}}{{/isMap}}{{/parent}}string ToJson() public {{#parent}}{{^isMap}}{{^isArray}}new {{/isArray}}{{/isMap}}{{/parent}}string ToJson()
{ {
return JsonConvert.SerializeObject(this, Formatting.Indented); return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
} }
/// <summary> /// <summary>

View File

@ -44,7 +44,7 @@ namespace {{modelPackage}} {
/// </summary> /// </summary>
/// <returns>JSON string presentation of the object</returns> /// <returns>JSON string presentation of the object</returns>
public {{#parent}} new {{/parent}}string ToJson() { public {{#parent}} new {{/parent}}string ToJson() {
return JsonConvert.SerializeObject(this, Formatting.Indented); return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
} }
} }

View File

@ -175,7 +175,7 @@
/// <returns>JSON string presentation of the object</returns> /// <returns>JSON string presentation of the object</returns>
public {{#parent}}{{^isArray}}{{^isMap}}override {{/isMap}}{{/isArray}}{{/parent}}{{^parent}}virtual {{/parent}}string ToJson() public {{#parent}}{{^isArray}}{{^isMap}}override {{/isMap}}{{/isArray}}{{/parent}}{{^parent}}virtual {{/parent}}string ToJson()
{ {
return JsonConvert.SerializeObject(this, Formatting.Indented); return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
} }
/// <summary> /// <summary>

View File

@ -139,7 +139,7 @@ this.{{name}} = {{#lambda.camelcase_param}}{{name}}{{/lambda.camelcase_param}};
/// <returns>JSON string presentation of the object</returns> /// <returns>JSON string presentation of the object</returns>
public {{#parent}}{{^isArray}}{{^isMap}}override {{/isMap}}{{/isArray}}{{/parent}}{{^parent}}virtual {{/parent}}string ToJson() public {{#parent}}{{^isArray}}{{^isMap}}override {{/isMap}}{{/isArray}}{{/parent}}{{^parent}}virtual {{/parent}}string ToJson()
{ {
return JsonConvert.SerializeObject(this, Formatting.Indented); return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
} }
/// <summary> /// <summary>

View File

@ -138,7 +138,7 @@ namespace Org.OpenAPITools.Model
/// <returns>JSON string presentation of the object</returns> /// <returns>JSON string presentation of the object</returns>
public virtual string ToJson() public virtual string ToJson()
{ {
return JsonConvert.SerializeObject(this, Formatting.Indented); return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
} }
/// <summary> /// <summary>

View File

@ -97,7 +97,7 @@ namespace Org.OpenAPITools.Model
/// <returns>JSON string presentation of the object</returns> /// <returns>JSON string presentation of the object</returns>
public virtual string ToJson() public virtual string ToJson()
{ {
return JsonConvert.SerializeObject(this, Formatting.Indented); return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
} }
/// <summary> /// <summary>

View File

@ -92,7 +92,7 @@ namespace Org.OpenAPITools.Model
/// <returns>JSON string presentation of the object</returns> /// <returns>JSON string presentation of the object</returns>
public virtual string ToJson() public virtual string ToJson()
{ {
return JsonConvert.SerializeObject(this, Formatting.Indented); return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
} }
/// <summary> /// <summary>

View File

@ -83,7 +83,7 @@ namespace Org.OpenAPITools.Model
/// <returns>JSON string presentation of the object</returns> /// <returns>JSON string presentation of the object</returns>
public virtual string ToJson() public virtual string ToJson()
{ {
return JsonConvert.SerializeObject(this, Formatting.Indented); return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
} }
/// <summary> /// <summary>

View File

@ -81,7 +81,7 @@ namespace Org.OpenAPITools.Model
/// <returns>JSON string presentation of the object</returns> /// <returns>JSON string presentation of the object</returns>
public virtual string ToJson() public virtual string ToJson()
{ {
return JsonConvert.SerializeObject(this, Formatting.Indented); return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
} }
/// <summary> /// <summary>

View File

@ -74,7 +74,7 @@ namespace Org.OpenAPITools.Model
/// <returns>JSON string presentation of the object</returns> /// <returns>JSON string presentation of the object</returns>
public virtual string ToJson() public virtual string ToJson()
{ {
return JsonConvert.SerializeObject(this, Formatting.Indented); return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
} }
/// <summary> /// <summary>

View File

@ -74,7 +74,7 @@ namespace Org.OpenAPITools.Model
/// <returns>JSON string presentation of the object</returns> /// <returns>JSON string presentation of the object</returns>
public virtual string ToJson() public virtual string ToJson()
{ {
return JsonConvert.SerializeObject(this, Formatting.Indented); return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
} }
/// <summary> /// <summary>

View File

@ -92,7 +92,7 @@ namespace Org.OpenAPITools.Model
/// <returns>JSON string presentation of the object</returns> /// <returns>JSON string presentation of the object</returns>
public virtual string ToJson() public virtual string ToJson()
{ {
return JsonConvert.SerializeObject(this, Formatting.Indented); return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
} }
/// <summary> /// <summary>

View File

@ -74,7 +74,7 @@ namespace Org.OpenAPITools.Model
/// <returns>JSON string presentation of the object</returns> /// <returns>JSON string presentation of the object</returns>
public virtual string ToJson() public virtual string ToJson()
{ {
return JsonConvert.SerializeObject(this, Formatting.Indented); return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
} }
/// <summary> /// <summary>

View File

@ -80,7 +80,7 @@ namespace Org.OpenAPITools.Model
/// <returns>JSON string presentation of the object</returns> /// <returns>JSON string presentation of the object</returns>
public virtual string ToJson() public virtual string ToJson()
{ {
return JsonConvert.SerializeObject(this, Formatting.Indented); return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
} }
/// <summary> /// <summary>

View File

@ -83,7 +83,7 @@ namespace Org.OpenAPITools.Model
/// <returns>JSON string presentation of the object</returns> /// <returns>JSON string presentation of the object</returns>
public virtual string ToJson() public virtual string ToJson()
{ {
return JsonConvert.SerializeObject(this, Formatting.Indented); return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
} }
/// <summary> /// <summary>

View File

@ -120,7 +120,7 @@ namespace Org.OpenAPITools.Model
/// <returns>JSON string presentation of the object</returns> /// <returns>JSON string presentation of the object</returns>
public virtual string ToJson() public virtual string ToJson()
{ {
return JsonConvert.SerializeObject(this, Formatting.Indented); return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
} }
/// <summary> /// <summary>

View File

@ -87,7 +87,7 @@ namespace Org.OpenAPITools.Model
/// <returns>JSON string presentation of the object</returns> /// <returns>JSON string presentation of the object</returns>
public override string ToJson() public override string ToJson()
{ {
return JsonConvert.SerializeObject(this, Formatting.Indented); return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
} }
/// <summary> /// <summary>

View File

@ -74,7 +74,7 @@ namespace Org.OpenAPITools.Model
/// <returns>JSON string presentation of the object</returns> /// <returns>JSON string presentation of the object</returns>
public virtual string ToJson() public virtual string ToJson()
{ {
return JsonConvert.SerializeObject(this, Formatting.Indented); return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
} }
/// <summary> /// <summary>

View File

@ -92,7 +92,7 @@ namespace Org.OpenAPITools.Model
/// <returns>JSON string presentation of the object</returns> /// <returns>JSON string presentation of the object</returns>
public virtual string ToJson() public virtual string ToJson()
{ {
return JsonConvert.SerializeObject(this, Formatting.Indented); return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
} }
/// <summary> /// <summary>

View File

@ -107,7 +107,7 @@ namespace Org.OpenAPITools.Model
/// <returns>JSON string presentation of the object</returns> /// <returns>JSON string presentation of the object</returns>
public override string ToJson() public override string ToJson()
{ {
return JsonConvert.SerializeObject(this, Formatting.Indented); return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
} }
/// <summary> /// <summary>

View File

@ -96,7 +96,7 @@ namespace Org.OpenAPITools.Model
/// <returns>JSON string presentation of the object</returns> /// <returns>JSON string presentation of the object</returns>
public virtual string ToJson() public virtual string ToJson()
{ {
return JsonConvert.SerializeObject(this, Formatting.Indented); return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
} }
/// <summary> /// <summary>

View File

@ -74,7 +74,7 @@ namespace Org.OpenAPITools.Model
/// <returns>JSON string presentation of the object</returns> /// <returns>JSON string presentation of the object</returns>
public virtual string ToJson() public virtual string ToJson()
{ {
return JsonConvert.SerializeObject(this, Formatting.Indented); return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
} }
/// <summary> /// <summary>

View File

@ -93,7 +93,7 @@ namespace Org.OpenAPITools.Model
/// <returns>JSON string presentation of the object</returns> /// <returns>JSON string presentation of the object</returns>
public virtual string ToJson() public virtual string ToJson()
{ {
return JsonConvert.SerializeObject(this, Formatting.Indented); return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
} }
/// <summary> /// <summary>

View File

@ -83,7 +83,7 @@ namespace Org.OpenAPITools.Model
/// <returns>JSON string presentation of the object</returns> /// <returns>JSON string presentation of the object</returns>
public virtual string ToJson() public virtual string ToJson()
{ {
return JsonConvert.SerializeObject(this, Formatting.Indented); return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
} }
/// <summary> /// <summary>

View File

@ -87,7 +87,7 @@ namespace Org.OpenAPITools.Model
/// <returns>JSON string presentation of the object</returns> /// <returns>JSON string presentation of the object</returns>
public override string ToJson() public override string ToJson()
{ {
return JsonConvert.SerializeObject(this, Formatting.Indented); return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
} }
/// <summary> /// <summary>

View File

@ -74,7 +74,7 @@ namespace Org.OpenAPITools.Model
/// <returns>JSON string presentation of the object</returns> /// <returns>JSON string presentation of the object</returns>
public virtual string ToJson() public virtual string ToJson()
{ {
return JsonConvert.SerializeObject(this, Formatting.Indented); return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
} }
/// <summary> /// <summary>

View File

@ -94,7 +94,7 @@ namespace Org.OpenAPITools.Model
/// <returns>JSON string presentation of the object</returns> /// <returns>JSON string presentation of the object</returns>
public string ToJson() public string ToJson()
{ {
return JsonConvert.SerializeObject(this, Formatting.Indented); return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
} }
/// <summary> /// <summary>

View File

@ -122,7 +122,7 @@ namespace Org.OpenAPITools.Model
/// <returns>JSON string presentation of the object</returns> /// <returns>JSON string presentation of the object</returns>
public virtual string ToJson() public virtual string ToJson()
{ {
return JsonConvert.SerializeObject(this, Formatting.Indented); return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
} }
/// <summary> /// <summary>

View File

@ -226,7 +226,7 @@ namespace Org.OpenAPITools.Model
/// <returns>JSON string presentation of the object</returns> /// <returns>JSON string presentation of the object</returns>
public virtual string ToJson() public virtual string ToJson()
{ {
return JsonConvert.SerializeObject(this, Formatting.Indented); return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
} }
/// <summary> /// <summary>

View File

@ -93,7 +93,7 @@ namespace Org.OpenAPITools.Model
/// <returns>JSON string presentation of the object</returns> /// <returns>JSON string presentation of the object</returns>
public virtual string ToJson() public virtual string ToJson()
{ {
return JsonConvert.SerializeObject(this, Formatting.Indented); return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
} }
/// <summary> /// <summary>

View File

@ -75,7 +75,7 @@ namespace Org.OpenAPITools.Model
/// <returns>JSON string presentation of the object</returns> /// <returns>JSON string presentation of the object</returns>
public virtual string ToJson() public virtual string ToJson()
{ {
return JsonConvert.SerializeObject(this, Formatting.Indented); return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
} }
/// <summary> /// <summary>

View File

@ -83,7 +83,7 @@ namespace Org.OpenAPITools.Model
/// <returns>JSON string presentation of the object</returns> /// <returns>JSON string presentation of the object</returns>
public virtual string ToJson() public virtual string ToJson()
{ {
return JsonConvert.SerializeObject(this, Formatting.Indented); return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
} }
/// <summary> /// <summary>

View File

@ -75,7 +75,7 @@ namespace Org.OpenAPITools.Model
/// <returns>JSON string presentation of the object</returns> /// <returns>JSON string presentation of the object</returns>
public virtual string ToJson() public virtual string ToJson()
{ {
return JsonConvert.SerializeObject(this, Formatting.Indented); return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
} }
/// <summary> /// <summary>

View File

@ -222,7 +222,7 @@ namespace Org.OpenAPITools.Model
/// <returns>JSON string presentation of the object</returns> /// <returns>JSON string presentation of the object</returns>
public virtual string ToJson() public virtual string ToJson()
{ {
return JsonConvert.SerializeObject(this, Formatting.Indented); return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
} }
/// <summary> /// <summary>

View File

@ -87,7 +87,7 @@ namespace Org.OpenAPITools.Model
/// <returns>JSON string presentation of the object</returns> /// <returns>JSON string presentation of the object</returns>
public virtual string ToJson() public virtual string ToJson()
{ {
return JsonConvert.SerializeObject(this, Formatting.Indented); return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
} }
/// <summary> /// <summary>

View File

@ -98,7 +98,7 @@ namespace Org.OpenAPITools.Model
/// <returns>JSON string presentation of the object</returns> /// <returns>JSON string presentation of the object</returns>
public virtual string ToJson() public virtual string ToJson()
{ {
return JsonConvert.SerializeObject(this, Formatting.Indented); return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
} }
/// <summary> /// <summary>

View File

@ -74,7 +74,7 @@ namespace Org.OpenAPITools.Model
/// <returns>JSON string presentation of the object</returns> /// <returns>JSON string presentation of the object</returns>
public virtual string ToJson() public virtual string ToJson()
{ {
return JsonConvert.SerializeObject(this, Formatting.Indented); return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
} }
/// <summary> /// <summary>

View File

@ -85,7 +85,7 @@ namespace Org.OpenAPITools.Model
/// <returns>JSON string presentation of the object</returns> /// <returns>JSON string presentation of the object</returns>
public virtual string ToJson() public virtual string ToJson()
{ {
return JsonConvert.SerializeObject(this, Formatting.Indented); return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
} }
/// <summary> /// <summary>

View File

@ -85,7 +85,7 @@ namespace Org.OpenAPITools.Model
/// <returns>JSON string presentation of the object</returns> /// <returns>JSON string presentation of the object</returns>
public virtual string ToJson() public virtual string ToJson()
{ {
return JsonConvert.SerializeObject(this, Formatting.Indented); return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
} }
/// <summary> /// <summary>

View File

@ -131,7 +131,7 @@ namespace Org.OpenAPITools.Model
/// <returns>JSON string presentation of the object</returns> /// <returns>JSON string presentation of the object</returns>
public virtual string ToJson() public virtual string ToJson()
{ {
return JsonConvert.SerializeObject(this, Formatting.Indented); return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
} }
/// <summary> /// <summary>

View File

@ -216,7 +216,7 @@ namespace Org.OpenAPITools.Model
/// <returns>JSON string presentation of the object</returns> /// <returns>JSON string presentation of the object</returns>
public virtual string ToJson() public virtual string ToJson()
{ {
return JsonConvert.SerializeObject(this, Formatting.Indented); return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
} }
/// <summary> /// <summary>

View File

@ -95,7 +95,7 @@ namespace Org.OpenAPITools.Model
/// <returns>JSON string presentation of the object</returns> /// <returns>JSON string presentation of the object</returns>
public virtual string ToJson() public virtual string ToJson()
{ {
return JsonConvert.SerializeObject(this, Formatting.Indented); return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
} }
/// <summary> /// <summary>

View File

@ -94,7 +94,7 @@ namespace Org.OpenAPITools.Model
/// <returns>JSON string presentation of the object</returns> /// <returns>JSON string presentation of the object</returns>
public virtual string ToJson() public virtual string ToJson()
{ {
return JsonConvert.SerializeObject(this, Formatting.Indented); return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
} }
/// <summary> /// <summary>

View File

@ -74,7 +74,7 @@ namespace Org.OpenAPITools.Model
/// <returns>JSON string presentation of the object</returns> /// <returns>JSON string presentation of the object</returns>
public virtual string ToJson() public virtual string ToJson()
{ {
return JsonConvert.SerializeObject(this, Formatting.Indented); return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
} }
/// <summary> /// <summary>

View File

@ -82,7 +82,7 @@ namespace Org.OpenAPITools.Model
/// <returns>JSON string presentation of the object</returns> /// <returns>JSON string presentation of the object</returns>
public virtual string ToJson() public virtual string ToJson()
{ {
return JsonConvert.SerializeObject(this, Formatting.Indented); return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
} }
/// <summary> /// <summary>

View File

@ -74,7 +74,7 @@ namespace Org.OpenAPITools.Model
/// <returns>JSON string presentation of the object</returns> /// <returns>JSON string presentation of the object</returns>
public virtual string ToJson() public virtual string ToJson()
{ {
return JsonConvert.SerializeObject(this, Formatting.Indented); return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
} }
/// <summary> /// <summary>

View File

@ -121,7 +121,7 @@ namespace Org.OpenAPITools.Model
/// <returns>JSON string presentation of the object</returns> /// <returns>JSON string presentation of the object</returns>
public virtual string ToJson() public virtual string ToJson()
{ {
return JsonConvert.SerializeObject(this, Formatting.Indented); return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
} }
/// <summary> /// <summary>

View File

@ -92,7 +92,7 @@ namespace Org.OpenAPITools.Model
/// <returns>JSON string presentation of the object</returns> /// <returns>JSON string presentation of the object</returns>
public virtual string ToJson() public virtual string ToJson()
{ {
return JsonConvert.SerializeObject(this, Formatting.Indented); return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
} }
/// <summary> /// <summary>

View File

@ -83,7 +83,7 @@ namespace Org.OpenAPITools.Model
/// <returns>JSON string presentation of the object</returns> /// <returns>JSON string presentation of the object</returns>
public virtual string ToJson() public virtual string ToJson()
{ {
return JsonConvert.SerializeObject(this, Formatting.Indented); return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
} }
/// <summary> /// <summary>

View File

@ -74,7 +74,7 @@ namespace Org.OpenAPITools.Model
/// <returns>JSON string presentation of the object</returns> /// <returns>JSON string presentation of the object</returns>
public virtual string ToJson() public virtual string ToJson()
{ {
return JsonConvert.SerializeObject(this, Formatting.Indented); return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
} }
/// <summary> /// <summary>

View File

@ -123,7 +123,7 @@ namespace Org.OpenAPITools.Model
/// <returns>JSON string presentation of the object</returns> /// <returns>JSON string presentation of the object</returns>
public virtual string ToJson() public virtual string ToJson()
{ {
return JsonConvert.SerializeObject(this, Formatting.Indented); return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
} }
/// <summary> /// <summary>

View File

@ -167,7 +167,7 @@ namespace Org.OpenAPITools.Model
/// <returns>JSON string presentation of the object</returns> /// <returns>JSON string presentation of the object</returns>
public string ToJson() public string ToJson()
{ {
return JsonConvert.SerializeObject(this, Formatting.Indented); return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
} }
/// <summary> /// <summary>

View File

@ -74,7 +74,7 @@ namespace Org.OpenAPITools.Model
/// <returns>JSON string presentation of the object</returns> /// <returns>JSON string presentation of the object</returns>
public virtual string ToJson() public virtual string ToJson()
{ {
return JsonConvert.SerializeObject(this, Formatting.Indented); return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
} }
/// <summary> /// <summary>

View File

@ -146,7 +146,7 @@ namespace Org.OpenAPITools.Model
/// <returns>JSON string presentation of the object</returns> /// <returns>JSON string presentation of the object</returns>
public virtual string ToJson() public virtual string ToJson()
{ {
return JsonConvert.SerializeObject(this, Formatting.Indented); return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
} }
/// <summary> /// <summary>

View File

@ -92,7 +92,7 @@ namespace Org.OpenAPITools.Model
/// <returns>JSON string presentation of the object</returns> /// <returns>JSON string presentation of the object</returns>
public virtual string ToJson() public virtual string ToJson()
{ {
return JsonConvert.SerializeObject(this, Formatting.Indented); return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
} }
/// <summary> /// <summary>

View File

@ -78,7 +78,7 @@ namespace Org.OpenAPITools.Model
/// <returns>JSON string presentation of the object</returns> /// <returns>JSON string presentation of the object</returns>
public override string ToJson() public override string ToJson()
{ {
return JsonConvert.SerializeObject(this, Formatting.Indented); return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
} }
/// <summary> /// <summary>

View File

@ -156,7 +156,7 @@ namespace Org.OpenAPITools.Model
/// <returns>JSON string presentation of the object</returns> /// <returns>JSON string presentation of the object</returns>
public virtual string ToJson() public virtual string ToJson()
{ {
return JsonConvert.SerializeObject(this, Formatting.Indented); return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
} }
/// <summary> /// <summary>

View File

@ -83,7 +83,7 @@ namespace Org.OpenAPITools.Model
/// <returns>JSON string presentation of the object</returns> /// <returns>JSON string presentation of the object</returns>
public virtual string ToJson() public virtual string ToJson()
{ {
return JsonConvert.SerializeObject(this, Formatting.Indented); return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
} }
/// <summary> /// <summary>

View File

@ -90,7 +90,7 @@ namespace Org.OpenAPITools.Model
/// <returns>JSON string presentation of the object</returns> /// <returns>JSON string presentation of the object</returns>
public virtual string ToJson() public virtual string ToJson()
{ {
return JsonConvert.SerializeObject(this, Formatting.Indented); return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
} }
/// <summary> /// <summary>

View File

@ -74,7 +74,7 @@ namespace Org.OpenAPITools.Model
/// <returns>JSON string presentation of the object</returns> /// <returns>JSON string presentation of the object</returns>
public virtual string ToJson() public virtual string ToJson()
{ {
return JsonConvert.SerializeObject(this, Formatting.Indented); return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
} }
/// <summary> /// <summary>

View File

@ -93,7 +93,7 @@ namespace Org.OpenAPITools.Model
/// <returns>JSON string presentation of the object</returns> /// <returns>JSON string presentation of the object</returns>
public virtual string ToJson() public virtual string ToJson()
{ {
return JsonConvert.SerializeObject(this, Formatting.Indented); return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
} }
/// <summary> /// <summary>

View File

@ -83,7 +83,7 @@ namespace Org.OpenAPITools.Model
/// <returns>JSON string presentation of the object</returns> /// <returns>JSON string presentation of the object</returns>
public virtual string ToJson() public virtual string ToJson()
{ {
return JsonConvert.SerializeObject(this, Formatting.Indented); return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
} }
/// <summary> /// <summary>

View File

@ -93,7 +93,7 @@ namespace Org.OpenAPITools.Model
/// <returns>JSON string presentation of the object</returns> /// <returns>JSON string presentation of the object</returns>
public virtual string ToJson() public virtual string ToJson()
{ {
return JsonConvert.SerializeObject(this, Formatting.Indented); return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
} }
/// <summary> /// <summary>

View File

@ -74,7 +74,7 @@ namespace Org.OpenAPITools.Model
/// <returns>JSON string presentation of the object</returns> /// <returns>JSON string presentation of the object</returns>
public virtual string ToJson() public virtual string ToJson()
{ {
return JsonConvert.SerializeObject(this, Formatting.Indented); return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
} }
/// <summary> /// <summary>

View File

@ -83,7 +83,7 @@ namespace Org.OpenAPITools.Model
/// <returns>JSON string presentation of the object</returns> /// <returns>JSON string presentation of the object</returns>
public virtual string ToJson() public virtual string ToJson()
{ {
return JsonConvert.SerializeObject(this, Formatting.Indented); return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
} }
/// <summary> /// <summary>

View File

@ -83,7 +83,7 @@ namespace Org.OpenAPITools.Model
/// <returns>JSON string presentation of the object</returns> /// <returns>JSON string presentation of the object</returns>
public virtual string ToJson() public virtual string ToJson()
{ {
return JsonConvert.SerializeObject(this, Formatting.Indented); return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
} }
/// <summary> /// <summary>

View File

@ -178,7 +178,7 @@ namespace Org.OpenAPITools.Model
/// <returns>JSON string presentation of the object</returns> /// <returns>JSON string presentation of the object</returns>
public virtual string ToJson() public virtual string ToJson()
{ {
return JsonConvert.SerializeObject(this, Formatting.Indented); return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
} }
/// <summary> /// <summary>

View File

@ -101,7 +101,7 @@ namespace Org.OpenAPITools.Model
/// <returns>JSON string presentation of the object</returns> /// <returns>JSON string presentation of the object</returns>
public virtual string ToJson() public virtual string ToJson()
{ {
return JsonConvert.SerializeObject(this, Formatting.Indented); return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
} }
/// <summary> /// <summary>

View File

@ -118,7 +118,7 @@ namespace Org.OpenAPITools.Model
/// <returns>JSON string presentation of the object</returns> /// <returns>JSON string presentation of the object</returns>
public string ToJson() public string ToJson()
{ {
return JsonConvert.SerializeObject(this, Formatting.Indented); return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
} }
/// <summary> /// <summary>

View File

@ -138,7 +138,7 @@ namespace Org.OpenAPITools.Model
/// <returns>JSON string presentation of the object</returns> /// <returns>JSON string presentation of the object</returns>
public virtual string ToJson() public virtual string ToJson()
{ {
return JsonConvert.SerializeObject(this, Formatting.Indented); return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
} }
/// <summary> /// <summary>

View File

@ -97,7 +97,7 @@ namespace Org.OpenAPITools.Model
/// <returns>JSON string presentation of the object</returns> /// <returns>JSON string presentation of the object</returns>
public virtual string ToJson() public virtual string ToJson()
{ {
return JsonConvert.SerializeObject(this, Formatting.Indented); return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
} }
/// <summary> /// <summary>

View File

@ -92,7 +92,7 @@ namespace Org.OpenAPITools.Model
/// <returns>JSON string presentation of the object</returns> /// <returns>JSON string presentation of the object</returns>
public virtual string ToJson() public virtual string ToJson()
{ {
return JsonConvert.SerializeObject(this, Formatting.Indented); return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
} }
/// <summary> /// <summary>

View File

@ -83,7 +83,7 @@ namespace Org.OpenAPITools.Model
/// <returns>JSON string presentation of the object</returns> /// <returns>JSON string presentation of the object</returns>
public virtual string ToJson() public virtual string ToJson()
{ {
return JsonConvert.SerializeObject(this, Formatting.Indented); return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
} }
/// <summary> /// <summary>

View File

@ -81,7 +81,7 @@ namespace Org.OpenAPITools.Model
/// <returns>JSON string presentation of the object</returns> /// <returns>JSON string presentation of the object</returns>
public virtual string ToJson() public virtual string ToJson()
{ {
return JsonConvert.SerializeObject(this, Formatting.Indented); return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
} }
/// <summary> /// <summary>

View File

@ -74,7 +74,7 @@ namespace Org.OpenAPITools.Model
/// <returns>JSON string presentation of the object</returns> /// <returns>JSON string presentation of the object</returns>
public virtual string ToJson() public virtual string ToJson()
{ {
return JsonConvert.SerializeObject(this, Formatting.Indented); return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
} }
/// <summary> /// <summary>

View File

@ -74,7 +74,7 @@ namespace Org.OpenAPITools.Model
/// <returns>JSON string presentation of the object</returns> /// <returns>JSON string presentation of the object</returns>
public virtual string ToJson() public virtual string ToJson()
{ {
return JsonConvert.SerializeObject(this, Formatting.Indented); return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
} }
/// <summary> /// <summary>

View File

@ -92,7 +92,7 @@ namespace Org.OpenAPITools.Model
/// <returns>JSON string presentation of the object</returns> /// <returns>JSON string presentation of the object</returns>
public virtual string ToJson() public virtual string ToJson()
{ {
return JsonConvert.SerializeObject(this, Formatting.Indented); return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
} }
/// <summary> /// <summary>

View File

@ -74,7 +74,7 @@ namespace Org.OpenAPITools.Model
/// <returns>JSON string presentation of the object</returns> /// <returns>JSON string presentation of the object</returns>
public virtual string ToJson() public virtual string ToJson()
{ {
return JsonConvert.SerializeObject(this, Formatting.Indented); return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
} }
/// <summary> /// <summary>

View File

@ -80,7 +80,7 @@ namespace Org.OpenAPITools.Model
/// <returns>JSON string presentation of the object</returns> /// <returns>JSON string presentation of the object</returns>
public virtual string ToJson() public virtual string ToJson()
{ {
return JsonConvert.SerializeObject(this, Formatting.Indented); return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
} }
/// <summary> /// <summary>

View File

@ -83,7 +83,7 @@ namespace Org.OpenAPITools.Model
/// <returns>JSON string presentation of the object</returns> /// <returns>JSON string presentation of the object</returns>
public virtual string ToJson() public virtual string ToJson()
{ {
return JsonConvert.SerializeObject(this, Formatting.Indented); return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
} }
/// <summary> /// <summary>

View File

@ -120,7 +120,7 @@ namespace Org.OpenAPITools.Model
/// <returns>JSON string presentation of the object</returns> /// <returns>JSON string presentation of the object</returns>
public virtual string ToJson() public virtual string ToJson()
{ {
return JsonConvert.SerializeObject(this, Formatting.Indented); return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
} }
/// <summary> /// <summary>

View File

@ -87,7 +87,7 @@ namespace Org.OpenAPITools.Model
/// <returns>JSON string presentation of the object</returns> /// <returns>JSON string presentation of the object</returns>
public override string ToJson() public override string ToJson()
{ {
return JsonConvert.SerializeObject(this, Formatting.Indented); return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
} }
/// <summary> /// <summary>

View File

@ -74,7 +74,7 @@ namespace Org.OpenAPITools.Model
/// <returns>JSON string presentation of the object</returns> /// <returns>JSON string presentation of the object</returns>
public virtual string ToJson() public virtual string ToJson()
{ {
return JsonConvert.SerializeObject(this, Formatting.Indented); return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
} }
/// <summary> /// <summary>

View File

@ -92,7 +92,7 @@ namespace Org.OpenAPITools.Model
/// <returns>JSON string presentation of the object</returns> /// <returns>JSON string presentation of the object</returns>
public virtual string ToJson() public virtual string ToJson()
{ {
return JsonConvert.SerializeObject(this, Formatting.Indented); return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
} }
/// <summary> /// <summary>

View File

@ -107,7 +107,7 @@ namespace Org.OpenAPITools.Model
/// <returns>JSON string presentation of the object</returns> /// <returns>JSON string presentation of the object</returns>
public override string ToJson() public override string ToJson()
{ {
return JsonConvert.SerializeObject(this, Formatting.Indented); return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
} }
/// <summary> /// <summary>

View File

@ -96,7 +96,7 @@ namespace Org.OpenAPITools.Model
/// <returns>JSON string presentation of the object</returns> /// <returns>JSON string presentation of the object</returns>
public virtual string ToJson() public virtual string ToJson()
{ {
return JsonConvert.SerializeObject(this, Formatting.Indented); return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
} }
/// <summary> /// <summary>

View File

@ -74,7 +74,7 @@ namespace Org.OpenAPITools.Model
/// <returns>JSON string presentation of the object</returns> /// <returns>JSON string presentation of the object</returns>
public virtual string ToJson() public virtual string ToJson()
{ {
return JsonConvert.SerializeObject(this, Formatting.Indented); return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
} }
/// <summary> /// <summary>

View File

@ -93,7 +93,7 @@ namespace Org.OpenAPITools.Model
/// <returns>JSON string presentation of the object</returns> /// <returns>JSON string presentation of the object</returns>
public virtual string ToJson() public virtual string ToJson()
{ {
return JsonConvert.SerializeObject(this, Formatting.Indented); return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
} }
/// <summary> /// <summary>

View File

@ -83,7 +83,7 @@ namespace Org.OpenAPITools.Model
/// <returns>JSON string presentation of the object</returns> /// <returns>JSON string presentation of the object</returns>
public virtual string ToJson() public virtual string ToJson()
{ {
return JsonConvert.SerializeObject(this, Formatting.Indented); return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
} }
/// <summary> /// <summary>

View File

@ -87,7 +87,7 @@ namespace Org.OpenAPITools.Model
/// <returns>JSON string presentation of the object</returns> /// <returns>JSON string presentation of the object</returns>
public override string ToJson() public override string ToJson()
{ {
return JsonConvert.SerializeObject(this, Formatting.Indented); return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
} }
/// <summary> /// <summary>

View File

@ -74,7 +74,7 @@ namespace Org.OpenAPITools.Model
/// <returns>JSON string presentation of the object</returns> /// <returns>JSON string presentation of the object</returns>
public virtual string ToJson() public virtual string ToJson()
{ {
return JsonConvert.SerializeObject(this, Formatting.Indented); return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
} }
/// <summary> /// <summary>

View File

@ -94,7 +94,7 @@ namespace Org.OpenAPITools.Model
/// <returns>JSON string presentation of the object</returns> /// <returns>JSON string presentation of the object</returns>
public string ToJson() public string ToJson()
{ {
return JsonConvert.SerializeObject(this, Formatting.Indented); return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
} }
/// <summary> /// <summary>

View File

@ -122,7 +122,7 @@ namespace Org.OpenAPITools.Model
/// <returns>JSON string presentation of the object</returns> /// <returns>JSON string presentation of the object</returns>
public virtual string ToJson() public virtual string ToJson()
{ {
return JsonConvert.SerializeObject(this, Formatting.Indented); return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
} }
/// <summary> /// <summary>

View File

@ -226,7 +226,7 @@ namespace Org.OpenAPITools.Model
/// <returns>JSON string presentation of the object</returns> /// <returns>JSON string presentation of the object</returns>
public virtual string ToJson() public virtual string ToJson()
{ {
return JsonConvert.SerializeObject(this, Formatting.Indented); return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
} }
/// <summary> /// <summary>

View File

@ -93,7 +93,7 @@ namespace Org.OpenAPITools.Model
/// <returns>JSON string presentation of the object</returns> /// <returns>JSON string presentation of the object</returns>
public virtual string ToJson() public virtual string ToJson()
{ {
return JsonConvert.SerializeObject(this, Formatting.Indented); return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
} }
/// <summary> /// <summary>

View File

@ -75,7 +75,7 @@ namespace Org.OpenAPITools.Model
/// <returns>JSON string presentation of the object</returns> /// <returns>JSON string presentation of the object</returns>
public virtual string ToJson() public virtual string ToJson()
{ {
return JsonConvert.SerializeObject(this, Formatting.Indented); return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
} }
/// <summary> /// <summary>

View File

@ -83,7 +83,7 @@ namespace Org.OpenAPITools.Model
/// <returns>JSON string presentation of the object</returns> /// <returns>JSON string presentation of the object</returns>
public virtual string ToJson() public virtual string ToJson()
{ {
return JsonConvert.SerializeObject(this, Formatting.Indented); return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
} }
/// <summary> /// <summary>

View File

@ -75,7 +75,7 @@ namespace Org.OpenAPITools.Model
/// <returns>JSON string presentation of the object</returns> /// <returns>JSON string presentation of the object</returns>
public virtual string ToJson() public virtual string ToJson()
{ {
return JsonConvert.SerializeObject(this, Formatting.Indented); return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
} }
/// <summary> /// <summary>

Some files were not shown because too many files have changed in this diff Show More