merge method

  1. @override
MatexCountryMetadata merge(
  1. covariant MatexCountryMetadata model
)
override

Merges the current object with another MatexCountryMetadata model.

Prioritizes the properties of the provided model unless they're null, then it uses the current properties.

Implementation

@override
MatexCountryMetadata merge(covariant MatexCountryMetadata model) {
  return MatexCountryMetadata(
    vatRates: model.vatRates ?? vatRates,
    currency: model.currency,
    code: model.code,
    id: model.id,
  );
}