copyWith method

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

Implementation

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