updateEmail method

Future<ResponseItemDTO> updateEmail({
  1. ProfileEmailChangeBody? profileEmail,
})

Implementation

Future<ResponseItemDTO> updateEmail({
  ProfileEmailChangeBody? profileEmail,
}) async {
  final response = await _http!.request(
    requestType: RequestType.put,
    path: '/dashboard/profile/email',
    data: profileEmail,
  );

  return ResponseItemDTO(
    response: response,
    fromJson: null,
  );
}