copyWith method

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

Implementation

HubCommandResponseModel copyWith(
    {enums.HubCommandType? commandType,
    List<Object>? arguments,
    int? commandId,
    List<int>? errors}) {
  return HubCommandResponseModel(
      commandType: commandType ?? this.commandType,
      arguments: arguments ?? this.arguments,
      commandId: commandId ?? this.commandId,
      errors: errors ?? this.errors);
}