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

dart.libraries.dio.serialization.json_serializable.enum.mustache Maven / Gradle / Ivy

There is a newer version: 7.9.0
Show newest version
import 'package:json_annotation/json_annotation.dart';

{{#description}}/// {{{description}}}{{/description}}
{{#isDeprecated}}
@Deprecated('{{{classname}}} has been deprecated')
{{/isDeprecated}}
enum {{{classname}}} {
{{#allowableValues}}
{{#enumVars}}
  {{^isNull}}
      {{#description}}
          /// {{{.}}}
      {{/description}}
      @JsonValue({{#isString}}r{{/isString}}{{{value}}})
      {{{name}}}({{^isString}}'{{/isString}}{{#isString}}r{{/isString}}{{{value}}}{{^isString}}'{{/isString}}){{^-last}},{{/-last}}{{#-last}};{{/-last}}
  {{/isNull}}
{{/enumVars}}
{{/allowableValues}}

  const {{{classname}}}(this.value);

  final String value;

  @override
  String toString() => value;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy