IssuingTransactionPurchaseDetails.fromJson constructor
IssuingTransactionPurchaseDetails.fromJson(
- Object? json
Implementation
factory IssuingTransactionPurchaseDetails.fromJson(Object? json) {
final map = (json as Map).cast<String, Object?>();
return IssuingTransactionPurchaseDetails(
flight: map['flight'] == null
? null
: IssuingTransactionPurchaseDetailsFlight.fromJson(map['flight']),
fuel: map['fuel'] == null
? null
: IssuingTransactionPurchaseDetailsFuel.fromJson(map['fuel']),
lodging: map['lodging'] == null
? null
: IssuingTransactionPurchaseDetailsLodging.fromJson(map['lodging']),
receipt: map['receipt'] == null
? null
: (map['receipt'] as List<Object?>)
.map((el) => IssuingTransactionReceiptData.fromJson(el))
.toList(),
reference: map['reference'] == null ? null : (map['reference'] as String),
);
}