From 64c5168c6f2acf56c9ad42d392ee2d59f4a80d56 Mon Sep 17 00:00:00 2001 From: Tobe O Date: Tue, 15 May 2018 15:54:32 -0400 Subject: [PATCH] gen 2.0.7 --- angel_serialize/.packages | 2 +- angel_serialize/CHANGELOG.md | 3 +++ angel_serialize/lib/angel_serialize.dart | 7 +++++++ angel_serialize/pubspec.yaml | 2 +- angel_serialize_generator/pubspec.yaml | 2 +- 5 files changed, 13 insertions(+), 3 deletions(-) diff --git a/angel_serialize/.packages b/angel_serialize/.packages index a255ba50..87ab5de3 100644 --- a/angel_serialize/.packages +++ b/angel_serialize/.packages @@ -1,2 +1,2 @@ -# Generated by pub on 2018-03-29 15:50:32.802835. +# Generated by pub on 2018-05-15 15:52:57.402230. angel_serialize:lib/ diff --git a/angel_serialize/CHANGELOG.md b/angel_serialize/CHANGELOG.md index fa004575..7029444b 100644 --- a/angel_serialize/CHANGELOG.md +++ b/angel_serialize/CHANGELOG.md @@ -1,3 +1,6 @@ +# 2.0.2 +* Added `DefaultValue`. + # 2.0.1 * Added `Serializers.typescript`. diff --git a/angel_serialize/lib/angel_serialize.dart b/angel_serialize/lib/angel_serialize.dart index a33d689e..12e5c0f6 100644 --- a/angel_serialize/lib/angel_serialize.dart +++ b/angel_serialize/lib/angel_serialize.dart @@ -9,6 +9,13 @@ class Exclude { const Exclude exclude = const Exclude(); +/// Marks a field as having a default value. +class DefaultValue { + final value; + + const DefaultValue(this.value); +} + /// Marks a class as eligible for serialization. class Serializable { const Serializable( diff --git a/angel_serialize/pubspec.yaml b/angel_serialize/pubspec.yaml index 3ab1dff0..8e7b2f73 100644 --- a/angel_serialize/pubspec.yaml +++ b/angel_serialize/pubspec.yaml @@ -1,5 +1,5 @@ name: angel_serialize -version: 2.0.1 +version: 2.0.2 description: Static annotations powering Angel model serialization. Combine with angel_serialize_generator for flexible modeling. author: Tobe O homepage: https://github.com/angel-dart/serialize diff --git a/angel_serialize_generator/pubspec.yaml b/angel_serialize_generator/pubspec.yaml index 4852d1a5..c386eab7 100644 --- a/angel_serialize_generator/pubspec.yaml +++ b/angel_serialize_generator/pubspec.yaml @@ -1,5 +1,5 @@ name: angel_serialize_generator -version: 2.0.6 +version: 2.0.7 description: Model serialization generators, designed for use with Angel. Combine with angel_serialize for flexible modeling. author: Tobe O homepage: https://github.com/angel-dart/serialize