scala-gatling.model.mustache Maven / Gradle / Ivy
{{>licenseInfo}}
package {{package}}
{{#imports}}import {{import}}
{{/imports}}
{{#models}}
{{#model}}
case class {{classname}} (
{{#vars}}
{{#description}}
/* {{{.}}} */
{{/description}}
_{{{name}}}: {{^required}}Option[{{/required}}{{dataType}}{{^required}}]{{/required}}{{^-last}},{{/-last}}
{{/vars}}
)
object {{classname}} {
def toStringBody({{#vars}}var_{{name}}: Object{{^-last}}, {{/-last}}{{/vars}}) =
s"""
| {
| {{#vars}}"{{{name}}}":$var_{{{name}}}{{^-last}},{{/-last}}{{/vars}}
| }
""".stripMargin
}
{{/model}}
{{/models}}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy