copyWith method

WebhookResponseAttribute copyWith({
  1. bool? livemode,
  2. String? secretKey,
  3. String? status,
  4. String? url,
  5. List<String>? events,
  6. DateTime? createdAt,
  7. DateTime? updatedAt,
})

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