From 5ccc7755a79978802c44d3c6f984f8cfb0fca305 Mon Sep 17 00:00:00 2001 From: Tobe O Date: Tue, 27 Feb 2018 19:47:42 -0500 Subject: [PATCH] Rename constants to lowercase --- angel_serialize/lib/angel_serialize.dart | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/angel_serialize/lib/angel_serialize.dart b/angel_serialize/lib/angel_serialize.dart index 90d3733c..7b2d6ce3 100644 --- a/angel_serialize/lib/angel_serialize.dart +++ b/angel_serialize/lib/angel_serialize.dart @@ -8,7 +8,7 @@ const Exclude exclude = const Exclude(); /// Marks a class as eligible for serialization. class Serializable { const Serializable( - {this.serializers: const [Serializers.MAP, Serializers.JSON], + {this.serializers: const [Serializers.map, Serializers.json], this.autoSnakeCaseNames: true, this.autoIdAndDateFields: true}); @@ -29,10 +29,10 @@ const Serializable serializable = const Serializable(); /// The supported serialization types. abstract class Serializers { /// Enable `fromMap` and `toMap` methods on the model class. - static const int MAP = 0; + static const int map = 0; /// Enable a `toJson` method on the model class. - static const int JSON = 1; + static const int json = 1; } /// Specifies an alias for a field within its JSON representation.