19 lines
583 B
Dart
19 lines
583 B
Dart
import 'package:freezed_annotation/freezed_annotation.dart';
|
|
|
|
part 'registration_input.freezed.dart';
|
|
|
|
/// Eingaben der Registrierung (Spec #1 § 5.2).
|
|
@freezed
|
|
abstract class RegistrationInput with _$RegistrationInput {
|
|
const factory RegistrationInput({
|
|
required String email,
|
|
required String password,
|
|
required String displayName,
|
|
required bool ageConfirmed,
|
|
required bool termsAccepted,
|
|
required String termsVersion,
|
|
|
|
/// Aktive Oberflächensprache (`de` oder `en`), bestimmt die Mailsprache.
|
|
required String locale,
|
|
}) = _RegistrationInput;
|
|
}
|