Skip to content

Instantly share code, notes, and snippets.

@xiprox
Last active September 11, 2018 16:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xiprox/185314e66e0a191fec6d95c826cacc64 to your computer and use it in GitHub Desktop.
Save xiprox/185314e66e0a191fec6d95c826cacc64 to your computer and use it in GitHub Desktop.
Flutter IntelliJ File Templates
class ${ClassName} {
${ClassName}();
}
import 'package:json_annotation/json_annotation.dart';
part '${NAME}.g.dart';
@JsonSerializable()
class ${ClassName} {
${ClassName}();
factory ${ClassName}.fromJson(Map<String, dynamic> json) =>
_$${ClassName}FromJson(json);
Map<String, dynamic> toJson() => _$${ClassName}ToJson(this);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment