PaymentLinksResourceInvoiceCreation.fromJson constructor
PaymentLinksResourceInvoiceCreation.fromJson(
- Object? json
Implementation
factory PaymentLinksResourceInvoiceCreation.fromJson(Object? json) {
final map = (json as Map).cast<String, Object?>();
return PaymentLinksResourceInvoiceCreation(
enabled: (map['enabled'] as bool),
invoiceData: map['invoice_data'] == null
? null
: PaymentLinkInvoiceCreationInvoiceData.fromJson(map['invoice_data']),
);
}