copyWith method

PaymentRefundResponse copyWith({
  1. String? id,
  2. String? type,
  3. PaymentRefundResponseAttributes? attributes,
  4. DateTime? availableAt,
  5. DateTime? createdAt,
  6. DateTime? paidAt,
  7. DateTime? updatedAt,
})

Implementation

PaymentRefundResponse copyWith({
  String? id,
  String? type,
  PaymentRefundResponseAttributes? attributes,
  DateTime? availableAt,
  DateTime? createdAt,
  DateTime? paidAt,
  DateTime? updatedAt,
}) {
  return PaymentRefundResponse(
    id: id ?? this.id,
    type: type ?? this.type,
    attributes: attributes ?? this.attributes,
    availableAt: availableAt ?? this.availableAt,
    createdAt: createdAt ?? this.createdAt,
    paidAt: paidAt ?? this.paidAt,
    updatedAt: updatedAt ?? this.updatedAt,
  );
}