Register constructor
- @JsonSerializable.new(includeIfNull: false)
const
Register(
{ - required String username,
- required String password,
- @JsonKey.new(name: 'password_verify') required String passwordVerify,
- @JsonKey.new(name: 'show_nsfw') bool? showNsfw,
- String? email,
- @JsonKey.new(name: 'captcha_uuid') String? captchaUuid,
- @JsonKey.new(name: 'captcha_answer') String? captchaAnswer,
- String? honeypot,
- String? answer,
})
Implementation
@JsonSerializable(includeIfNull: false)
const factory Register({
required String username,
required String password,
@JsonKey(name: 'password_verify') required String passwordVerify,
@JsonKey(name: 'show_nsfw') bool? showNsfw,
String? email,
@JsonKey(name: 'captcha_uuid') String? captchaUuid,
@JsonKey(name: 'captcha_answer') String? captchaAnswer,
String? honeypot,
String? answer,
}) = _Register;