initial commit
This commit is contained in:
commit
e8e678bc2b
23 changed files with 2339 additions and 0 deletions
15
lib/models/registration.dart
Normal file
15
lib/models/registration.dart
Normal file
|
@ -0,0 +1,15 @@
|
|||
import "package:freezed_annotation/freezed_annotation.dart";
|
||||
|
||||
part "registration.freezed.dart";
|
||||
part "registration.g.dart";
|
||||
|
||||
@freezed
|
||||
abstract class Registration with _$Registration {
|
||||
const factory Registration({
|
||||
required String email,
|
||||
required String username,
|
||||
}) = _Registration;
|
||||
|
||||
factory Registration.fromJson(Map<String, dynamic> json) =>
|
||||
_$RegistrationFromJson(json);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue