mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-11-16 17:27:37 +00:00
16 lines
391 B
Dart
16 lines
391 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>({required T raw}) => throw Exception('Unimplemented');
|
|
T serialize() => raw;
|
|
}
|