stack_wallet/lib/models/exchange/response_objects/pair.dart
2022-10-02 13:37:11 -06:00

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()}";
}
}