mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-12-23 12:09:43 +00:00
17 lines
356 B
Dart
17 lines
356 B
Dart
|
import 'package:flutter/foundation.dart';
|
||
|
|
||
|
abstract class EnumerableItem<T> {
|
||
|
const EnumerableItem({@required this.title, @required this.raw});
|
||
|
|
||
|
final T raw;
|
||
|
final String title;
|
||
|
|
||
|
@override
|
||
|
String toString() => title;
|
||
|
}
|
||
|
|
||
|
mixin Serializable<T> on EnumerableItem<T> {
|
||
|
static Serializable deserialize<T>({T raw}) => null;
|
||
|
T serialize() => raw;
|
||
|
}
|