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