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 json) => _$RegistrationFromJson(json); }