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

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

There is a newer version: 3.0.0-rc1
Show newest version
import com.squareup.moshi.Json

/**
* {{{description}}}
* Values: {{#allowableValues}}{{#enumVars}}{{&name}}{{^-last}},{{/-last}}{{/enumVars}}{{/allowableValues}}
*/
enum class {{classname}}(val value: {{dataType}}){
{{#allowableValues}}{{#enumVars}}
    @Json(name = {{{value}}}) {{&name}}({{{value}}}){{^-last}},{{/-last}}{{#-last}};{{/-last}}
{{/enumVars}}{{/allowableValues}}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy