Register constructor

  1. @JsonSerializable.new(includeIfNull: false)
const Register({
  1. required String username,
  2. required String password,
  3. @JsonKey.new(name: 'password_verify') required String passwordVerify,
  4. @JsonKey.new(name: 'show_nsfw') bool? showNsfw,
  5. String? email,
  6. @JsonKey.new(name: 'captcha_uuid') String? captchaUuid,
  7. @JsonKey.new(name: 'captcha_answer') String? captchaAnswer,
  8. String? honeypot,
  9. 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;