Register constructor

  1. @JsonSerializable(fieldRename: FieldRename.snake, includeIfNull: false)
const Register({
  1. required String username,
  2. String? email,
  3. required String password,
  4. required String passwordVerify,
  5. required bool showNsfw,
  6. String? captchaUuid,
  7. String? captchaAnswer,
  8. String? honeypot,
  9. String? answer,
})

Implementation

@JsonSerializable(fieldRename: FieldRename.snake, includeIfNull: false)
const factory Register({
  required String username,
  String? email,
  required String password,
  required String passwordVerify,
  required bool showNsfw,
  String? captchaUuid,
  String? captchaAnswer,
  String? honeypot,
  String? answer,
}) = _Register;