mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-11-17 17:57:36 +00:00
21 lines
No EOL
610 B
Dart
21 lines
No EOL
610 B
Dart
import 'package:cake_wallet/entities/enumerable_item.dart';
|
|
|
|
class BuyProviderDescription extends EnumerableItem<int>
|
|
with Serializable<int> {
|
|
const BuyProviderDescription({String title, int raw})
|
|
: super(title: title, raw: raw);
|
|
|
|
static const wyre = BuyProviderDescription(title: 'Wyre', raw: 0);
|
|
static const moonPay = BuyProviderDescription(title: 'MoonPay', raw: 1);
|
|
|
|
static BuyProviderDescription deserialize({int raw}) {
|
|
switch (raw) {
|
|
case 0:
|
|
return wyre;
|
|
case 1:
|
|
return moonPay;
|
|
default:
|
|
return null;
|
|
}
|
|
}
|
|
} |