SessionInvoiceCreation.fromJson constructor

SessionInvoiceCreation.fromJson(
  1. Object? json
)

Implementation

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