platform/angel_serialize_generator/test/models/with_enum.dart
2019-04-08 00:41:58 -04:00

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