19 lines
385 B
Dart
19 lines
385 B
Dart
import 'dart:convert';
|
|
import 'dart:typed_data';
|
|
import 'package:angel_serialize/angel_serialize.dart';
|
|
import 'package:collection/collection.dart';
|
|
part 'with_enum.g.dart';
|
|
|
|
@serializable
|
|
abstract class _WithEnum {
|
|
@DefaultsTo(WithEnumType.b)
|
|
WithEnumType get type;
|
|
|
|
@nullable
|
|
List<int> get finalList;
|
|
|
|
@nullable
|
|
Uint8List get imageBytes;
|
|
}
|
|
|
|
enum WithEnumType { a, b, c }
|