15 lines
395 B
Dart
15 lines
395 B
Dart
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);
|
|
}
|