From a3ee18e8c937ed9de6aa0e817647eaa000ccfb0a Mon Sep 17 00:00:00 2001 From: thosakwe Date: Sat, 31 Dec 2016 13:24:36 -0500 Subject: [PATCH] 18 --- lib/src/commands/service.dart | 6 ++---- pubspec.yaml | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/lib/src/commands/service.dart b/lib/src/commands/service.dart index 4ab13fc..8325e57 100644 --- a/lib/src/commands/service.dart +++ b/lib/src/commands/service.dart @@ -113,7 +113,6 @@ class ${name}Service extends Service { await file.writeAsString(''' library angel.models.$lower; -import 'dart:convert'; import 'package:angel_framework/angel_framework.dart'; import 'package:source_gen/generators/json_serializable.dart'; @@ -131,7 +130,7 @@ class $name extends MemoryModel with _\$${name}SerializerMixin { @JsonKey('desc') String desc; - factory $name.fromJson(Map json) => _\$${name}fromJson(json); + factory $name.fromJson(Map json) => _\$${name}FromJson(json); $name({String id, this.name, this.desc}) { this.id = id; @@ -168,7 +167,6 @@ class ${name}Service extends MemoryService<$name> { await file.writeAsString(''' library angel.models.$lower; -import 'dart:convert'; import 'package:angel_mongo/model.dart'; import 'package:source_gen/generators/json_serializable.dart'; @@ -186,7 +184,7 @@ class $name extends Model with _\$${name}SerializerMixin { @JsonKey('desc') String desc; - factory $name.fromJson(Map json) => _\$${name}fromJson(json); + factory $name.fromJson(Map json) => _\$${name}FromJson(json); $name({String id, this.name, this.desc}) { this.id = id; diff --git a/pubspec.yaml b/pubspec.yaml index fc31d27..cec3a79 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,5 +1,5 @@ name: angel_cli -version: 1.0.0-dev+17 +version: 1.0.0-dev+18 description: Command-line tools for the Angel framework. environment: sdk: ">=1.19.0"