|
|
@ -43,14 +43,20 @@ abstract class TypeResult { |
|
|
|
return 'FullType($className)'; |
|
|
|
return 'FullType($className)'; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
List<String> get builderFactories => [ |
|
|
|
Iterable<String> get serializers sync* { |
|
|
|
for (final class_ in generics) ...[ |
|
|
|
for (final class_ in generics) { |
|
|
|
...class_.builderFactories, |
|
|
|
yield* class_.serializers; |
|
|
|
], |
|
|
|
} |
|
|
|
if (_builderFactory != null) ...[ |
|
|
|
|
|
|
|
_builderFactory!, |
|
|
|
if (_builderFactory != null) { |
|
|
|
], |
|
|
|
yield _builderFactory!; |
|
|
|
]; |
|
|
|
} |
|
|
|
|
|
|
|
if (_serializer != null) { |
|
|
|
|
|
|
|
yield _serializer!; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
String? get _serializer; |
|
|
|
|
|
|
|
|
|
|
|
String? get _builderFactory; |
|
|
|
String? get _builderFactory; |
|
|
|
|
|
|
|
|
|
|
|