angel_serialize_generator 2.0.7

  • README.md
  • CHANGELOG.md
  • Example
  • Installing
  • Versions
  • 79

angel_serialize_generator

The builder for Angel's model serialization.

Find documentation in the main project repo: https://github.com/angel-dart/serialize

2.0.7

  • Create unmodifiable Lists and Maps.
  • Support @required on fields.
  • Affix an @immutable annotation to classes, if package:meta is imported.
  • Add /// <reference path="..." /> to TypeScript models.

2.0.6

  • Support for using abstract to create immutable model classes.
  • Add support for custom constructor parameters.
  • Closed #21 - better naming of Map types.
  • Added overridden == operators.

2.0.5

  • Deserialization now supports un-serialized DateTime.
  • Better support for regular typed Lists and Maps in TypeScript.

2.0.4

  • Fields in TypeScript definitions are now nullable by default.

2.0.3

  • Added a TypeScriptDefinitionBuilder.

2.0.2

  • Generates an XFields class with the serialized names of all fields in a model class X.
  • Removed unnecessary named parameters from XSerializer.fromMap.

2.0.1

  • Ensured that List is only transformed if it generically references a Model.

example/main.dart

import 'package:angel_serialize/angel_serialize.dart';

@serializable
class _Todo {
  String text;
  bool completed;
}

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  angel_serialize_generator: "^2.0.7"

2. Install it

You can install packages from the command line:

with pub:


$ pub get

with Flutter:


$ flutter packages get

Alternatively, your editor might support pub get or flutter packages get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


      import 'package:angel_serialize_generator/angel_serialize_generator.dart';
  
Version Uploaded Documentation Archive
2.0.7 May 15, 2018 Go to the documentation of angel_serialize_generator 2.0.7 Download angel_serialize_generator 2.0.7 archive
2.0.6 May 13, 2018 Go to the documentation of angel_serialize_generator 2.0.6 Download angel_serialize_generator 2.0.6 archive
2.0.5 Mar 30, 2018 Go to the documentation of angel_serialize_generator 2.0.5 Download angel_serialize_generator 2.0.5 archive
2.0.4 Mar 30, 2018 Go to the documentation of angel_serialize_generator 2.0.4 Download angel_serialize_generator 2.0.4 archive
2.0.3 Mar 29, 2018 Go to the documentation of angel_serialize_generator 2.0.3 Download angel_serialize_generator 2.0.3 archive
2.0.2 Mar 9, 2018 Go to the documentation of angel_serialize_generator 2.0.2 Download angel_serialize_generator 2.0.2 archive
2.0.1 Mar 5, 2018 Go to the documentation of angel_serialize_generator 2.0.1 Download angel_serialize_generator 2.0.1 archive
2.0.0 Mar 2, 2018 Go to the documentation of angel_serialize_generator 2.0.0 Download angel_serialize_generator 2.0.0 archive
1.0.0 Dec 7, 2017 Go to the documentation of angel_serialize_generator 1.0.0 Download angel_serialize_generator 1.0.0 archive
2.0.0-alpha Mar 2, 2018 Go to the documentation of angel_serialize_generator 2.0.0-alpha Download angel_serialize_generator 2.0.0-alpha archive

All 14 versions...

Analysis

We analyzed this package on Jun 19, 2018, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.0.0-dev.63.0
  • pana: 0.11.3

Scores

Popularity:
Describes how popular the package is relative to other packages. [more]
59 / 100
Health:
Code health derived from static analysis. [more]
100 / 100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
100 / 100
Overall score:
Weighted score of the above. [more]
79
Learn more about scoring.

Platforms

Detected platforms: Flutter, other

Primary library: package:angel_serialize_generator/angel_serialize_generator.dart with components: io, build.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0-dev.1.2 <2.0.0
angel_serialize ^2.0.0-alpha 2.0.2
build_config >=0.2.4 <2.0.0 0.3.0
code_buffer ^1.0.0 1.0.0
code_builder ^3.0.0 3.1.0
id ^1.0.0 1.0.16
meta ^1.0.0 1.1.5
recase ^1.0.0 1.0.0+1
source_gen ^0.7.0 0.7.6 0.8.2
Transitive dependencies
analyzer 0.31.1 0.32.1
args 1.4.3
async 2.0.7
build 0.12.6
built_collection 3.1.1
built_value 5.5.2
charcode 1.1.1
cli_util 0.1.3
collection 1.14.10
convert 2.0.1
crypto 2.0.5
csslib 0.14.4
dart_style 1.0.9+1 1.1.0
fixnum 0.10.7
front_end 0.1.0-alpha.9 0.1.1
glob 1.1.5
html 0.13.3+1
isolate 1.1.0 2.0.1
json_annotation 0.2.8
kernel 0.3.0-alpha.9 0.3.1
logging 0.11.3+1
matcher 0.12.3
package_config 1.0.3
path 1.6.1
plugin 0.2.0+2
pub_semver 1.4.1
pubspec_parse 0.1.1
quiver 0.24.0 0.29.0+1
source_span 1.4.0
stack_trace 1.9.2
string_scanner 1.0.2
typed_data 1.1.5
utf 0.9.0+4
watcher 0.9.7+8
yaml 2.1.14
Dev dependencies
angel_framework ^1.0.0
build_runner ^0.7.0
test >=0.12.13 <0.13.0