copyWithWrapped method

EntityRes copyWithWrapped({
  1. Wrapped<Object?>? entity,
  2. Wrapped<bool>? ok,
  3. Wrapped<String?>? msg,
})

Implementation

EntityRes copyWithWrapped(
    {Wrapped<Object?>? entity, Wrapped<bool>? ok, Wrapped<String?>? msg}) {
  return EntityRes(
      entity: (entity != null ? entity.value : this.entity),
      ok: (ok != null ? ok.value : this.ok),
      msg: (msg != null ? msg.value : this.msg));
}