Mute lints
This commit is contained in:
parent
36bb5d3123
commit
133dafe710
8 changed files with 13 additions and 9 deletions
|
@ -1,3 +1,4 @@
|
||||||
|
// ignore_for_file: unused_element
|
||||||
import 'package:angel_serialize/angel_serialize.dart';
|
import 'package:angel_serialize/angel_serialize.dart';
|
||||||
|
|
||||||
@serializable
|
@serializable
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
// ignore_for_file: unused_element
|
||||||
import 'package:angel_serialize/angel_serialize.dart';
|
import 'package:angel_serialize/angel_serialize.dart';
|
||||||
|
|
||||||
@serializable
|
@serializable
|
||||||
|
|
|
@ -260,7 +260,7 @@ abstract class AuthorSerializer {
|
||||||
: null);
|
: null);
|
||||||
}
|
}
|
||||||
|
|
||||||
static Map<String, dynamic> toMap(Author model) {
|
static Map<String, dynamic> toMap(_Author model) {
|
||||||
if (model == null) {
|
if (model == null) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
@ -276,7 +276,7 @@ abstract class AuthorSerializer {
|
||||||
'id': model.id,
|
'id': model.id,
|
||||||
'name': model.name,
|
'name': model.name,
|
||||||
'age': model.age,
|
'age': model.age,
|
||||||
'books': model.books?.map((m) => m.toJson())?.toList(),
|
'books': model.books?.map((m) => BookSerializer.toMap(m))?.toList(),
|
||||||
'newest_book': BookSerializer.toMap(model.newestBook),
|
'newest_book': BookSerializer.toMap(model.newestBook),
|
||||||
'created_at': model.createdAt?.toIso8601String(),
|
'created_at': model.createdAt?.toIso8601String(),
|
||||||
'updated_at': model.updatedAt?.toIso8601String()
|
'updated_at': model.updatedAt?.toIso8601String()
|
||||||
|
@ -340,7 +340,7 @@ abstract class LibrarySerializer {
|
||||||
: null);
|
: null);
|
||||||
}
|
}
|
||||||
|
|
||||||
static Map<String, dynamic> toMap(Library model) {
|
static Map<String, dynamic> toMap(_Library model) {
|
||||||
if (model == null) {
|
if (model == null) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
@ -397,7 +397,7 @@ abstract class BookmarkSerializer {
|
||||||
: null);
|
: null);
|
||||||
}
|
}
|
||||||
|
|
||||||
static Map<String, dynamic> toMap(Bookmark model) {
|
static Map<String, dynamic> toMap(_Bookmark model) {
|
||||||
if (model == null) {
|
if (model == null) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
|
@ -131,7 +131,7 @@ abstract class BookSerializer {
|
||||||
: null);
|
: null);
|
||||||
}
|
}
|
||||||
|
|
||||||
static Map<String, dynamic> toMap(Book model) {
|
static Map<String, dynamic> toMap(_Book model) {
|
||||||
if (model == null) {
|
if (model == null) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,5 +10,6 @@ class _Gamepad {
|
||||||
|
|
||||||
Map<String, dynamic> dynamicMap;
|
Map<String, dynamic> dynamicMap;
|
||||||
|
|
||||||
|
// ignore: unused_field
|
||||||
String _somethingPrivate;
|
String _somethingPrivate;
|
||||||
}
|
}
|
||||||
|
|
|
@ -63,12 +63,13 @@ abstract class GamepadSerializer {
|
||||||
: null);
|
: null);
|
||||||
}
|
}
|
||||||
|
|
||||||
static Map<String, dynamic> toMap(Gamepad model) {
|
static Map<String, dynamic> toMap(_Gamepad model) {
|
||||||
if (model == null) {
|
if (model == null) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
return {
|
return {
|
||||||
'buttons': model.buttons?.map((m) => m.toJson())?.toList(),
|
'buttons':
|
||||||
|
model.buttons?.map((m) => GamepadButtonSerializer.toMap(m))?.toList(),
|
||||||
'dynamic_map': model.dynamicMap
|
'dynamic_map': model.dynamicMap
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -47,7 +47,7 @@ abstract class GamepadButtonSerializer {
|
||||||
name: map['name'] as String, radius: map['radius'] as int);
|
name: map['name'] as String, radius: map['radius'] as int);
|
||||||
}
|
}
|
||||||
|
|
||||||
static Map<String, dynamic> toMap(GamepadButton model) {
|
static Map<String, dynamic> toMap(_GamepadButton model) {
|
||||||
if (model == null) {
|
if (model == null) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
|
@ -71,7 +71,7 @@ abstract class WithEnumSerializer {
|
||||||
: null)));
|
: null)));
|
||||||
}
|
}
|
||||||
|
|
||||||
static Map<String, dynamic> toMap(WithEnum model) {
|
static Map<String, dynamic> toMap(_WithEnum model) {
|
||||||
if (model == null) {
|
if (model == null) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue