platform/angel_serialize_generator/test/models/with_enum.dart

18 lines
361 B
Dart
Raw Normal View History

2018-12-08 20:53:49 +00:00
import 'dart:convert';
import 'dart:typed_data';
2018-06-27 05:36:57 +00:00
import 'package:angel_serialize/angel_serialize.dart';
2018-06-27 05:45:46 +00:00
import 'package:collection/collection.dart';
2018-06-27 05:36:57 +00:00
part 'with_enum.g.dart';
2019-01-09 19:25:05 +00:00
@serializable
2018-06-27 05:36:57 +00:00
abstract class _WithEnum {
2019-04-04 21:40:36 +00:00
@DefaultsTo(WithEnumType.b)
2018-06-27 05:36:57 +00:00
WithEnumType get type;
2018-06-27 05:45:46 +00:00
List<int> get finalList;
2018-12-08 20:53:49 +00:00
Uint8List get imageBytes;
2018-06-27 05:36:57 +00:00
}
enum WithEnumType { a, b, c }