copyWith method
Implementation
PaymentConsentValidDateTime copyWith({DateTime? from, DateTime? to}) {
return PaymentConsentValidDateTime(
from: from ?? this.from, to: to ?? this.to);
}
PaymentConsentValidDateTime copyWith({DateTime? from, DateTime? to}) {
return PaymentConsentValidDateTime(
from: from ?? this.from, to: to ?? this.to);
}