csharp.libraries.generichost.model.mustache Maven / Gradle / Ivy
//
{{>partial_header}}
{{#nrt}}
#nullable enable
{{/nrt}}
using System;
using System.Collections;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.IO;
{{^useGenericHost}}
using System.Runtime.Serialization;
{{/useGenericHost}}
using System.Text;
using System.Text.RegularExpressions;
using System.Text.Json;
using System.Text.Json.Serialization;
{{#validatable}}
using System.ComponentModel.DataAnnotations;
{{/validatable}}
{{#useCompareNetObjects}}
using OpenAPIClientUtils = {{packageName}}.Client.ClientUtils;
{{/useCompareNetObjects}}
{{#useGenericHost}}
{{#useSourceGeneration}}
using System.Text.Json.Serialization.Metadata;
{{/useSourceGeneration}}
using {{packageName}}.{{clientPackage}};
{{/useGenericHost}}
{{#models}}
{{#lambda.trimTrailingWithNewLine}}
{{#model}}
namespace {{packageName}}.{{modelPackage}}
{
{{#isEnum}}
{{>modelEnum}}
{{/isEnum}}
{{^isEnum}}
{{>modelGeneric}}
{{>JsonConverter}}
{{/isEnum}}
{{>SourceGenerationContext}}
{{/model}}
{{/lambda.trimTrailingWithNewLine}}
{{/models}}
}