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