copyWith method
response attribute from the receiving API
Implementation
WebhookResponseAttribute copyWith({
bool? livemode,
String? secretKey,
String? status,
String? url,
List<String>? events,
DateTime? createdAt,
DateTime? updatedAt,
}) {
return WebhookResponseAttribute(
livemode: livemode ?? this.livemode,
secretKey: secretKey ?? this.secretKey,
status: status ?? this.status,
url: url ?? this.url,
events: events ?? this.events,
createdAt: createdAt ?? this.createdAt,
updatedAt: updatedAt ?? this.updatedAt,
);
}