mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-12-24 20:39:21 +00:00
35 lines
641 B
Dart
35 lines
641 B
Dart
class Pair {
|
|
final String from;
|
|
final String fromNetwork;
|
|
|
|
final String to;
|
|
final String toNetwork;
|
|
|
|
final bool fixedRate;
|
|
final bool floatingRate;
|
|
|
|
Pair({
|
|
required this.from,
|
|
required this.fromNetwork,
|
|
required this.to,
|
|
required this.toNetwork,
|
|
required this.fixedRate,
|
|
required this.floatingRate,
|
|
});
|
|
|
|
Map<String, dynamic> toJson() {
|
|
return {
|
|
"from": from,
|
|
"fromNetwork": fromNetwork,
|
|
"to": to,
|
|
"toNetwork": toNetwork,
|
|
"fixedRate": fixedRate,
|
|
"floatingRate": floatingRate,
|
|
};
|
|
}
|
|
|
|
@override
|
|
String toString() {
|
|
return "Pair: ${toJson()}";
|
|
}
|
|
}
|