14 lines
248 B
Dart
14 lines
248 B
Dart
|
import 'currency.dart';
|
||
|
|
||
|
class Amount {
|
||
|
double value;
|
||
|
Currency currency;
|
||
|
|
||
|
Amount({required this.value, required this.currency});
|
||
|
|
||
|
Map<String, dynamic> toJson() =>
|
||
|
{
|
||
|
'value': value,
|
||
|
'currency': currency.value
|
||
|
};
|
||
|
}
|