IssuingTransactionPurchaseDetailsFuel.fromJson constructor

IssuingTransactionPurchaseDetailsFuel.fromJson(
  1. Object? json
)

Implementation

factory IssuingTransactionPurchaseDetailsFuel.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return IssuingTransactionPurchaseDetailsFuel(
    type: (map['type'] as String),
    unit: (map['unit'] as String),
    unitCostDecimal: (map['unit_cost_decimal'] as String),
    volumeDecimal: map['volume_decimal'] == null
        ? null
        : (map['volume_decimal'] as String),
  );
}