update method

Future<ResponseItemDTO> update({
  1. String? id,
  2. ThemeBody? theme,
})

Implementation

Future<ResponseItemDTO> update({String? id, ThemeBody? theme}) async {
  final response = await _http!.request(
    requestType: RequestType.put,
    path: '/dashboard/themes',
    param: id,
    data: theme,
  );

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