All Downloads are FREE. Search and download functionalities are using the official Maven repository.

kotlin-client.data_class_req_var.mustache Maven / Gradle / Ivy

There is a newer version: 7.9.0
Show newest version
{{#description}}
    /* {{{.}}} */
{{/description}}
    {{^multiplatform}}
    {{#moshi}}
    @Json(name = "{{{vendorExtensions.x-base-name-literal}}}")
    {{/moshi}}
    {{#gson}}
    @SerializedName("{{{vendorExtensions.x-base-name-literal}}}")
    {{/gson}}
    {{#jackson}}
    @get:JsonProperty("{{{vendorExtensions.x-base-name-literal}}}")
    {{/jackson}}
    {{#kotlinx_serialization}}
    {{^isEnum}}{{^isArray}}{{^isPrimitiveType}}{{^isModel}}@Contextual {{/isModel}}{{/isPrimitiveType}}{{/isArray}}{{/isEnum}}@SerialName(value = "{{{vendorExtensions.x-base-name-literal}}}")
    {{/kotlinx_serialization}}
    {{/multiplatform}}
    {{#vendorExtensions.x-field-extra-annotation}}
    {{{vendorExtensions.x-field-extra-annotation}}}
    {{/vendorExtensions.x-field-extra-annotation}}
    {{#deprecated}}
    @Deprecated(message = "This property is deprecated.")
    {{/deprecated}}
    {{#multiplatform}}@SerialName(value = "{{{vendorExtensions.x-base-name-literal}}}") @Required {{/multiplatform}}{{#isInherited}}override {{/isInherited}}{{>modelMutable}} {{{name}}}: {{#isArray}}{{#isList}}{{#uniqueItems}}kotlin.collections.{{#modelMutable}}Mutable{{/modelMutable}}Set{{/uniqueItems}}{{^uniqueItems}}kotlin.collections.{{#modelMutable}}Mutable{{/modelMutable}}List{{/uniqueItems}}{{/isList}}{{^isList}}kotlin.Array{{/isList}}<{{^items.isEnum}}{{^items.isPrimitiveType}}{{^items.isModel}}{{#kotlinx_serialization}}@Contextual {{/kotlinx_serialization}}{{/items.isModel}}{{/items.isPrimitiveType}}{{{items.dataType}}}{{/items.isEnum}}{{#items.isEnum}}{{classname}}.{{{nameInPascalCase}}}{{/items.isEnum}}>{{/isArray}}{{^isEnum}}{{^isArray}}{{{dataType}}}{{/isArray}}{{/isEnum}}{{#isEnum}}{{^isArray}}{{classname}}.{{{nameInPascalCase}}}{{/isArray}}{{/isEnum}}{{#isNullable}}?{{/isNullable}}{{#defaultValue}} = {{^isNumber}}{{{defaultValue}}}{{/isNumber}}{{#isNumber}}{{^multiplatform}}{{{dataType}}}("{{{defaultValue}}}"){{/multiplatform}}{{#multiplatform}}({{{defaultValue}}}).toDouble(){{/multiplatform}}{{/isNumber}}{{/defaultValue}}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy