copyWith method
Creates a copy of the ResponseModel instance with the specified properties overridden.
Implementation
ResponseModel copyWith({
dynamic entity,
dynamic error,
bool? hasMore,
String? message,
int? status,
}) {
return ResponseModel(
entity: entity ?? this.entity,
error: error ?? this.error,
hasMore: hasMore ?? this.hasMore,
message: message ?? this.message,
status: status ?? this.status,
);
}