Skip to content

Instantly share code, notes, and snippets.

@saitbnzl
Last active June 20, 2019 14:59
Show Gist options
  • Save saitbnzl/3f6ef5c5fca28e5ab0a38c62350b4303 to your computer and use it in GitHub Desktop.
Save saitbnzl/3f6ef5c5fca28e5ab0a38c62350b4303 to your computer and use it in GitHub Desktop.
Flutter json_serializble snippet for intellij
import 'package:json_annotation/json_annotation.dart';
part '$FILE$.g.dart';
@JsonSerializable()
class $CLASS_NAME$ {
$CLASS_NAME$({});
factory $CLASS_NAME$.fromJson(Map<String, dynamic> json) =>
_$$$CLASS_NAME$FromJson(json);
Map<String, dynamic> toJson() => _$$$CLASS_NAME$ToJson(this);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment