SetPhoneRequest constructor

SetPhoneRequest({
  1. String? userId,
  2. String? phone,
  3. SendPhoneVerificationCode? sendCode,
  4. ReturnPhoneVerificationCode? returnCode,
  5. bool? isVerified,
})

Implementation

factory SetPhoneRequest({
  $core.String? userId,
  $core.String? phone,
  $3.SendPhoneVerificationCode? sendCode,
  $3.ReturnPhoneVerificationCode? returnCode,
  $core.bool? isVerified,
}) {
  final $result = create();
  if (userId != null) {
    $result.userId = userId;
  }
  if (phone != null) {
    $result.phone = phone;
  }
  if (sendCode != null) {
    $result.sendCode = sendCode;
  }
  if (returnCode != null) {
    $result.returnCode = returnCode;
  }
  if (isVerified != null) {
    $result.isVerified = isVerified;
  }
  return $result;
}