platform/angel_serialize_generator/test/models/with_enum.dart
2019-04-04 17:40:36 -04:00

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 }