TODO: Put a short description of the package here that helps potential users know whether this package might be useful for them.
TODO: List what your package can do. Maybe include images, gifs, or videos.
TODO: List prerequisites and provide or point to information on how to start using the package.
TODO: Include short and useful examples for package users. Add longer examples
to /example
folder.
const like = 'sample';
TODO: Tell users more about the package: where to find more information, how to contribute to the package, how to file issues, what response they can expect from the package authors, and more.
- add *.reflectable.dart to gitignore
- import 'main.reflectable.dart' in main entrypoint
- dart run build_runner build TODO: add use example for these example;
import 'package:firefighter/firefighter.dart';
@fireData
class User implements FireSerializable {
final String uid;
final String name;
final String email;
const User({
required this.uid,
required this.name,
required this.email,
});
@override
Map<String, dynamic> toJson() => {
"uid": uid,
"name": name,
"email": email,
};
factory User.fromJson(Map<String, dynamic> data) {
return User(
uid: data['uid'],
name: data['name'],
email: data['email'],
);
}
}