copyWithWrapped method

HubCommandResponseModel copyWithWrapped({
  1. Wrapped<HubCommandType?>? commandType,
  2. Wrapped<List<Object>?>? arguments,
  3. Wrapped<int?>? commandId,
  4. Wrapped<List<int>?>? errors,
})

Implementation

HubCommandResponseModel copyWithWrapped(
    {Wrapped<enums.HubCommandType?>? commandType,
    Wrapped<List<Object>?>? arguments,
    Wrapped<int?>? commandId,
    Wrapped<List<int>?>? errors}) {
  return HubCommandResponseModel(
      commandType:
          (commandType != null ? commandType.value : this.commandType),
      arguments: (arguments != null ? arguments.value : this.arguments),
      commandId: (commandId != null ? commandId.value : this.commandId),
      errors: (errors != null ? errors.value : this.errors));
}