IssuingTransactionPurchaseDetailsLodging.fromJson constructor
IssuingTransactionPurchaseDetailsLodging.fromJson(
- Object? json
Implementation
factory IssuingTransactionPurchaseDetailsLodging.fromJson(Object? json) {
final map = (json as Map).cast<String, Object?>();
return IssuingTransactionPurchaseDetailsLodging(
checkInAt: map['check_in_at'] == null
? null
: (map['check_in_at'] as num).toInt(),
nights: map['nights'] == null ? null : (map['nights'] as num).toInt(),
);
}