copyWith method

SearchDeviceModelRes copyWith({
  1. List<DeviceModel>? entities,
  2. bool? ok,
  3. String? msg,
  4. int? page,
  5. int? size,
  6. int? total,
})

Implementation

SearchDeviceModelRes copyWith(
    {List<DeviceModel>? entities,
    bool? ok,
    String? msg,
    int? page,
    int? size,
    int? total}) {
  return SearchDeviceModelRes(
      entities: entities ?? this.entities,
      ok: ok ?? this.ok,
      msg: msg ?? this.msg,
      page: page ?? this.page,
      size: size ?? this.size,
      total: total ?? this.total);
}