Created
January 10, 2021 16:53
-
-
Save aliyazdi75/96a29438b8cd3b036424a619a8a8b5e9 to your computer and use it in GitHub Desktop.
This file contains 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
library serializers; | |
import 'package:built_value/serializer.dart'; | |
import 'package:built_value/standard_json_plugin.dart'; | |
import 'login.dart'; | |
import 'register.dart'; | |
part 'serializers.g.dart'; | |
@SerializersFor([ | |
Login, | |
LoginBody, | |
Register, | |
]) | |
final Serializers serializers = | |
(_$serializers.toBuilder()..addPlugin(StandardJsonPlugin())).build(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment