You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
import 'package:cw_core/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;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|