Updated to use Optional

This commit is contained in:
thomashii@dukefirehawk.com 2021-05-04 23:16:44 +08:00
parent b952d10d4b
commit 6dba84d69a
11 changed files with 50 additions and 50 deletions

View file

@ -128,8 +128,8 @@ class BookQuery extends Query<Book, BookQueryWhere> {
} }
@override @override
Book deserialize(List row) { Optional<Book> deserialize(List row) {
return parseRow(row).value; return parseRow(row);
} }
AuthorQuery? get author { AuthorQuery? get author {
@ -269,8 +269,8 @@ class AuthorQuery extends Query<Author, AuthorQueryWhere> {
} }
@override @override
Author deserialize(List row) { Optional<Author> deserialize(List row) {
return parseRow(row).value; return parseRow(row);
} }
} }

View file

@ -91,8 +91,8 @@ class CarQuery extends Query<Car, CarQueryWhere> {
} }
@override @override
Car deserialize(List row) { Optional<Car> deserialize(List row) {
return parseRow(row).value; return parseRow(row);
} }
} }

View file

@ -98,8 +98,8 @@ class NumbersQuery extends Query<Numbers, NumbersQueryWhere> {
} }
@override @override
Numbers deserialize(List row) { Optional<Numbers> deserialize(List row) {
return parseRow(row).value; return parseRow(row);
} }
} }
@ -209,8 +209,8 @@ class AlphabetQuery extends Query<Alphabet, AlphabetQueryWhere> {
} }
@override @override
Alphabet deserialize(List row) { Optional<Alphabet> deserialize(List row) {
return parseRow(row).value; return parseRow(row);
} }
NumbersQuery? get numbers { NumbersQuery? get numbers {

View file

@ -117,8 +117,8 @@ class RoleQuery extends Query<Role, RoleQueryWhere> {
} }
@override @override
Role deserialize(List row) { Optional<Role> deserialize(List row) {
return parseRow(row).value; return parseRow(row);
} }
@override @override
@ -281,8 +281,8 @@ class RoleUserQuery extends Query<RoleUser, RoleUserQueryWhere> {
} }
@override @override
RoleUser deserialize(List row) { Optional<RoleUser> deserialize(List row) {
return parseRow(row).value; return parseRow(row);
} }
RoleQuery? get role { RoleQuery? get role {
@ -398,8 +398,8 @@ class UserQuery extends Query<User, UserQueryWhere> {
} }
@override @override
User deserialize(List row) { Optional<User> deserialize(List row) {
return parseRow(row).value; return parseRow(row);
} }
@override @override

View file

@ -78,8 +78,8 @@ class HasCarQuery extends Query<HasCar, HasCarQueryWhere> {
} }
@override @override
HasCar deserialize(List row) { Optional<HasCar> deserialize(List row) {
return parseRow(row).value; return parseRow(row);
} }
} }

View file

@ -74,8 +74,8 @@ class HasMapQuery extends Query<HasMap, HasMapQueryWhere> {
} }
@override @override
HasMap deserialize(List row) { Optional<HasMap> deserialize(List row) {
return parseRow(row).value; return parseRow(row);
} }
} }

View file

@ -111,8 +111,8 @@ class LegQuery extends Query<Leg, LegQueryWhere> {
} }
@override @override
Leg deserialize(List row) { Optional<Leg> deserialize(List row) {
return parseRow(row).value; return parseRow(row);
} }
FootQuery? get foot { FootQuery? get foot {
@ -225,8 +225,8 @@ class FootQuery extends Query<Foot, FootQueryWhere> {
} }
@override @override
Foot deserialize(List row) { Optional<Foot> deserialize(List row) {
return parseRow(row).value; return parseRow(row);
} }
} }

View file

@ -118,8 +118,8 @@ class OrderQuery extends Query<Order, OrderQueryWhere> {
} }
@override @override
Order deserialize(List row) { Optional<Order> deserialize(List row) {
return parseRow(row).value; return parseRow(row);
} }
CustomerQuery? get customer { CustomerQuery? get customer {
@ -268,8 +268,8 @@ class CustomerQuery extends Query<Customer, CustomerQueryWhere> {
} }
@override @override
Customer deserialize(List row) { Optional<Customer> deserialize(List row) {
return parseRow(row).value; return parseRow(row);
} }
} }

View file

@ -111,8 +111,8 @@ class TreeQuery extends Query<Tree, TreeQueryWhere> {
} }
@override @override
Tree deserialize(List row) { Optional<Tree> deserialize(List row) {
return parseRow(row).value; return parseRow(row);
} }
FruitQuery? get fruits { FruitQuery? get fruits {
@ -282,8 +282,8 @@ class FruitQuery extends Query<Fruit, FruitQueryWhere> {
} }
@override @override
Fruit deserialize(List row) { Optional<Fruit> deserialize(List row) {
return parseRow(row).value; return parseRow(row);
} }
} }

View file

@ -152,8 +152,8 @@ class UnorthodoxQuery extends Query<Unorthodox, UnorthodoxQueryWhere> {
} }
@override @override
Unorthodox deserialize(List row) { Optional<Unorthodox> deserialize(List row) {
return parseRow(row).value; return parseRow(row);
} }
} }
@ -280,8 +280,8 @@ class WeirdJoinQuery extends Query<WeirdJoin, WeirdJoinQueryWhere> {
} }
@override @override
WeirdJoin deserialize(List row) { Optional<WeirdJoin> deserialize(List row) {
return parseRow(row).value; return parseRow(row);
} }
UnorthodoxQuery? get unorthodox { UnorthodoxQuery? get unorthodox {
@ -453,8 +453,8 @@ class SongQuery extends Query<Song, SongQueryWhere> {
} }
@override @override
Song deserialize(List row) { Optional<Song> deserialize(List row) {
return parseRow(row).value; return parseRow(row);
} }
} }
@ -567,8 +567,8 @@ class NumbaQuery extends Query<Numba, NumbaQueryWhere> {
} }
@override @override
Numba deserialize(List row) { Optional<Numba> deserialize(List row) {
return parseRow(row).value; return parseRow(row);
} }
} }
@ -666,8 +666,8 @@ class FooQuery extends Query<Foo, FooQueryWhere> {
} }
@override @override
Foo deserialize(List row) { Optional<Foo> deserialize(List row) {
return parseRow(row).value; return parseRow(row);
} }
@override @override
@ -828,8 +828,8 @@ class FooPivotQuery extends Query<FooPivot, FooPivotQueryWhere> {
} }
@override @override
FooPivot deserialize(List row) { Optional<FooPivot> deserialize(List row) {
return parseRow(row).value; return parseRow(row);
} }
WeirdJoinQuery? get weirdJoin { WeirdJoinQuery? get weirdJoin {

View file

@ -130,8 +130,8 @@ class UserQuery extends Query<User, UserQueryWhere> {
} }
@override @override
User deserialize(List row) { Optional<User> deserialize(List row) {
return parseRow(row).value; return parseRow(row);
} }
@override @override
@ -341,8 +341,8 @@ class RoleUserQuery extends Query<RoleUser, RoleUserQueryWhere> {
} }
@override @override
RoleUser deserialize(List row) { Optional<RoleUser> deserialize(List row) {
return parseRow(row).value; return parseRow(row);
} }
RoleQuery? get role { RoleQuery? get role {
@ -464,8 +464,8 @@ class RoleQuery extends Query<Role, RoleQueryWhere> {
} }
@override @override
Role deserialize(List row) { Optional<Role> deserialize(List row) {
return parseRow(row).value; return parseRow(row);
} }
@override @override