copyWith method

WebhookResponse copyWith({
  1. String? id,
  2. String? type,
  3. WebhookResponseAttribute? attributes,
})

response from paymongo webhook API

Implementation

WebhookResponse copyWith({
  String? id,
  String? type,
  WebhookResponseAttribute? attributes,
}) {
  return WebhookResponse(
    id: id ?? this.id,
    type: type ?? this.type,
    attributes: attributes ?? this.attributes,
  );
}