platform/angel_serialize/lib/angel_serialize.dart

19 lines
405 B
Dart
Raw Normal View History

2017-06-17 01:26:19 +00:00
/// Excludes a field from being excluded.
class Exclude {
const Exclude();
}
const Exclude exclude = const Exclude();
/// Marks a class as eligible for serialization.
class Serializable {
const Serializable();
}
const Serializable serializable = const Serializable();
/// Specifies an alias for a field within its JSON representation.
class Alias {
final String name;
const Alias(this.name);
}