Created
July 28, 2021 10:42
-
-
Save votruk/db5461fca8bfdfb8de853fa8c63dc95b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <template name="js" value="import 'package:json_annotation/json_annotation.dart'; part '$class_name_snake_case$.g.dart'; @JsonSerializable(fieldRename: FieldRename.snake) class $ClassName$ { factory $ClassName$.fromJson(final Map<String, dynamic> json) => _$$$ClassName$FromJson(json); Map<String, dynamic> toJson() => _$$$ClassName$ToJson(this); }" description="Create new JsonSerializable model class" toReformat="false" toShortenFQNames="true"> | |
| <variable name="ClassName" expression="" defaultValue="" alwaysStopAt="true" /> | |
| <variable name="class_name_snake_case" expression="snakeCase(ClassName)" defaultValue="" alwaysStopAt="false" /> | |
| <context> | |
| <option name="DART_TOPLEVEL" value="true" /> | |
| </context> | |
| </template> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment