IssuingTransactionLodgingData.fromJson constructor

IssuingTransactionLodgingData.fromJson(
  1. Object? json
)

Implementation

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