Skip to content

Latest commit

 

History

History
77 lines (58 loc) · 1.94 KB

README.md

File metadata and controls

77 lines (58 loc) · 1.94 KB

TODO: Put a short description of the package here that helps potential users know whether this package might be useful for them.

Features

TODO: List what your package can do. Maybe include images, gifs, or videos.

Getting started

TODO: List prerequisites and provide or point to information on how to start using the package.

Usage

TODO: Include short and useful examples for package users. Add longer examples to /example folder.

const like = 'sample';

Additional information

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'],
    );
  }
}