Closed leshkovichpvl closed 2 years ago
Please run with --verbose
!
...and include the information
Please run with
--verbose
!
UnimplementedError: (TypeParameterTypeImpl) T
package:json_serializable/src/utils.dart 194:3 typeToCode
dart:_internal ListIterable.join
package:json_serializable/src/utils.dart 190:48 typeToCode
package:json_serializable/src/type_helpers/json_helper.dart 133:17 JsonHelper.deserialize
package:json_serializable/src/type_helper_ctx.dart 68:29 TypeHelperCtx.deserialize.<fn>
dart:core Iterable.firstWhere
package:json_serializable/src/type_helper_ctx.dart 88:46 TypeHelperCtx._run
package:json_serializable/src/type_helper_ctx.dart 65:19 TypeHelperCtx.deserialize
package:json_serializable/src/type_helpers/iterable_helper.dart 76:32 IterableHelper.deserialize
package:json_serializable/src/type_helper_ctx.dart 68:29 TypeHelperCtx.deserialize.<fn>
dart:core Iterable.firstWhere
package:json_serializable/src/type_helper_ctx.dart 88:46 TypeHelperCtx._run
package:json_serializable/src/type_helper_ctx.dart 65:19 TypeHelperCtx.deserialize
package:json_serializable/src/decode_helper.dart 197:10 DecodeHelper._deserializeForField.deserialize
package:json_serializable/src/decode_helper.dart 216:17 DecodeHelper._deserializeForField
package:json_serializable/src/decode_helper.dart 56:9 DecodeHelper.createFactory.deserializeFun
package:json_serializable/src/decode_helper.dart 314:32 _writeConstructorInvocation.<fn>
dart:core StringBuffer.writeAll
package:json_serializable/src/decode_helper.dart 312:9 _writeConstructorInvocation
package:json_serializable/src/decode_helper.dart 59:18 DecodeHelper.createFactory
package:json_serializable/src/generator_helper.dart 85:28 GeneratorHelper.generate
dart:_internal WhereIterator.moveNext
package:json_serializable/src/json_part_builder.dart 64:27 _UnifiedGenerator.generate
package:source_gen/src/builder.dart 328:23 _generate
I have the same issue too.
I had to downgrade json_serializable
to ^4.1.2
to get it to work.
Seems like the issue exists in v5.X.X
too.
I'm facing this issue in version 6.1.1 and I cannot downgrade to 4.1.2 as there are other depedent packages. Is there any other solution?
Flutter 2.5.3 • channel stable, json_serializable: 6.0.1
Error:
I'm guessing the problem might be with
List<Edge<T>>
?