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; List get finalList; Uint8List get imageBytes; } enum WithEnumType { a, b, c }