TerminalReaderReaderResourceLineItem.fromJson constructor
TerminalReaderReaderResourceLineItem.fromJson(
- Object? json
Implementation
factory TerminalReaderReaderResourceLineItem.fromJson(Object? json) {
final map = (json as Map).cast<String, Object?>();
return TerminalReaderReaderResourceLineItem(
amount: (map['amount'] as num).toInt(),
description: (map['description'] as String),
quantity: (map['quantity'] as num).toInt(),
);
}