InvoicePayOptions.fromJson constructor
InvoicePayOptions.fromJson(
- Object? json
Implementation
factory InvoicePayOptions.fromJson(Object? json) {
final map = (json as Map).cast<String, Object?>();
return InvoicePayOptions(
expand: map['expand'] == null
? null
: (map['expand'] as List<Object?>)
.map((el) => (el as String))
.toList(),
forgive: map['forgive'] == null ? null : (map['forgive'] as bool),
mandate: map['mandate'] == null ? null : (map['mandate'] as String),
offSession:
map['off_session'] == null ? null : (map['off_session'] as bool),
paidOutOfBand: map['paid_out_of_band'] == null
? null
: (map['paid_out_of_band'] as bool),
paymentMethod: map['payment_method'] == null
? null
: (map['payment_method'] as String),
source: map['source'] == null ? null : (map['source'] as String),
);
}