Last active
June 20, 2019 14:59
-
-
Save saitbnzl/3f6ef5c5fca28e5ab0a38c62350b4303 to your computer and use it in GitHub Desktop.
Flutter json_serializble snippet for intellij
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
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