merge method
Implementation
merge(Result other) {
Result result = Result(
response: other.response ?? response,
body: other.body.isNotEmpty ? other.body : body,
code: other.code.isNotEmpty ? other.code : code,
message: other.message.isNotEmpty ? other.message : message,
data: other.data.isNotEmpty ? other.data : data,
list: other.list.isNotEmpty ? other.list : list,
error: other.error ?? error,
valid: other.valid ? other.valid : valid,
);
result.fill(_model);
result.fillList(_models);
return result;
}