InvoiceFinalizeInvoiceOptions.fromJson constructor
InvoiceFinalizeInvoiceOptions.fromJson(
- Object? json
Implementation
factory InvoiceFinalizeInvoiceOptions.fromJson(Object? json) {
final map = (json as Map).cast<String, Object?>();
return InvoiceFinalizeInvoiceOptions(
autoAdvance:
map['auto_advance'] == null ? null : (map['auto_advance'] as bool),
expand: map['expand'] == null
? null
: (map['expand'] as List<Object?>)
.map((el) => (el as String))
.toList(),
);
}