Skip to content

Commit 2e64ffb

Browse files
committed
Release 2.2.16
* clean up lints
1 parent e947420 commit 2e64ffb

File tree

7 files changed

+17
-11
lines changed

7 files changed

+17
-11
lines changed

mapper/CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 2.2.16
2+
3+
* clean up lints
4+
15
## 2.2.15
26

37
* bump dependencies to latest possible

mapper/lib/src/mapper.dart

+3-3
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ class JsonMapper {
8080
static T? fromJson<T>(String jsonValue, [DeserializationOptions? options]) =>
8181
deserialize<T>(jsonValue, options);
8282

83-
/// Converts Dart object to Map
83+
/// Converts Dart object to `Map<String, dynamic>`
8484
static Map<String, dynamic>? toMap(Object? object,
8585
[SerializationOptions? options]) {
8686
final context = SerializationContext(
@@ -91,7 +91,7 @@ class JsonMapper {
9191
return result is Map<String, dynamic> ? result : null;
9292
}
9393

94-
/// Converts Map to Dart object instance of type T
94+
/// Converts `Map<String, dynamic>` to Dart object instance of type T
9595
static T? fromMap<T>(Map<String, dynamic>? map,
9696
[DeserializationOptions? options]) =>
9797
deserialize<T>(map, options);
@@ -102,7 +102,7 @@ class JsonMapper {
102102
/// Alias for clone method to copy Dart object of type T
103103
static T? copy<T>(T object) => clone<T>(object);
104104

105-
/// Copy Dart object of type T & merge it with Map<String, dynamic>
105+
/// Copy Dart object of type T & merge it with ```Map<String, dynamic>```
106106
static T? copyWith<T>(T object, Map<String, dynamic> map) =>
107107
fromMap<T>(mergeMaps(toMap(object), map));
108108

mapper/lib/src/model/annotations.dart

+3-3
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class Json {
3535

3636
/// Defines a custom override value for a discriminator
3737
/// Usually used on annotations of subclasses, to distinguish it from each other
38-
/// Default value: <Annotated class name>
38+
/// Default value: ```<Annotated class name>```
3939
final dynamic discriminatorValue;
4040

4141
/// The most popular ways to combine words into a single string
@@ -60,7 +60,7 @@ class Json {
6060
final int? allowCircularReferences;
6161

6262
/// Static function to return a Map of Inline value decorators
63-
///
63+
/// ```dart
6464
/// @jsonSerializable
6565
/// class NoticeItem {}
6666
///
@@ -76,7 +76,7 @@ class Json {
7676
///
7777
/// const NoticeList(this.list);
7878
/// }
79-
///
79+
/// ```
8080
final Map<Type, ValueDecoratorFunction> Function()? valueDecorators;
8181

8282
/// Scheme marker to associate this meta information with particular mapping scheme

mapper/lib/src/model/enum.dart

+2
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,14 @@ abstract class IEnumDescriptor {
1515
class EnumDescriptor implements IEnumDescriptor {
1616
/// Defines a mapping for enum values, key is the enum value, value is the target mapping value
1717
/// Example:
18+
/// ```dart
1819
/// EnumDescriptor(
1920
/// values: RecordType.values,
2021
/// mapping: <RecordType, String>{
2122
/// RecordType.asset: 'Asset',
2223
/// RecordType.series: 'Series'
2324
/// })
25+
/// ```
2426
@override
2527
Map mapping;
2628

mapper/lib/src/model/index.dart

+3-3
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,11 @@ class DeserializationOptions {
3333
final bool? processAnnotatedMembersOnly;
3434

3535
/// Template Instance
36-
/// - for Deserialization output it could be a typed Iterable<T>, or Map<K, V>, or else
37-
/// - for Serialization output it could be an instance of Map<String, dynamic>
36+
/// - for Deserialization output it could be a typed `Iterable<T>`, or `Map<K, V>`, or else
37+
/// - for Serialization output it could be an instance of `Map<String, dynamic>`
3838
final dynamic template;
3939

40-
/// A Map<String, dynamic> of injectable values to be used for direct injection
40+
/// A `Map<String, dynamic>` of injectable values to be used for direct injection
4141
final InjectableValues? injectableValues;
4242

4343
/// Declares a fallback target type to deserialize to, when it's not possible to detect

mapper/pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: dart_json_mapper
2-
version: 2.2.15
2+
version: 2.2.16
33
description: >
44
This package allows programmers to annotate Dart objects in order to
55
serialize / deserialize them from / to JSON.

perf-test/test/unit/_test.mapper.g.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// This file has been generated by the dart_json_mapper v2.2.14
1+
// This file has been generated by the dart_json_mapper v2.2.15
22
// https://github.com/k-paxian/dart-json-mapper
33
// @dart = 2.12
44
import 'package:dart_json_mapper/dart_json_mapper.dart' show JsonMapper, JsonMapperAdapter, SerializationOptions, DeserializationOptions, typeOf;

0 commit comments

Comments
 (0)