copyWith method
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,
);
}