changeEmail abstract method

  1. @POST.new("/email-otp/change-email")
Future<Result<SuccessResponse>> changeEmail({
  1. @BodyExtra.new("newEmail") required String newEmail,
  2. @BodyExtra.new("otp") required String otp,
})

Completes an email change with the OTP sent to the new address.

Implementation

@POST("/email-otp/change-email")
Future<Result<SuccessResponse>> changeEmail({
  @BodyExtra("newEmail") required String newEmail,
  @BodyExtra("otp") required String otp,
});