Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
flutter built_value live templates
abstract class $NAME$ implements Built<$NAME$, $NAME$Builder> {
$END$// fields go here}",
$NAME$._();
factory $NAME$([updates($NAME$Builder b)]) = _$$$NAME$;
}
library $NAME$;
import 'dart:convert';
import 'package:built_collection/built_collection.dart';
import 'package:built_value/built_value.dart';
import 'package:built_value/serializer.dart';
part '$NAME$.g.dart';
abstract class $NAME$ implements Built<$NAME$, $NAME$Builder> {
$END$ // fields go here
$NAME$._();
factory $NAME$([updates($NAME$Builder b)]) = _$$$NAME$;
String toJson() {
return json.encode(serializers.serializeWith($NAME$.serializer, this));
}
static $NAME$ fromJson(String jsonString) {
return serializers.deserializeWith($NAME$.serializer, json.decode(jsonString));
}
static Serializer<$NAME$> get serializer => _$$$NAME1$Serializer;
}
@SebastianKlaiber

This comment has been minimized.

Copy link
Owner Author

@SebastianKlaiber SebastianKlaiber commented Jan 25, 2019

screenshot 2019-01-25 at 12 19 29

@edenchen123

This comment has been minimized.

Copy link

@edenchen123 edenchen123 commented May 16, 2019

amazing!

@RohittpNetrix

This comment has been minimized.

Copy link

@RohittpNetrix RohittpNetrix commented Feb 25, 2020

Awesome work! Thanks :)

@arifikhsan

This comment has been minimized.

Copy link

@arifikhsan arifikhsan commented Mar 25, 2020

good

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.