_privateConstructorUsedError = UnsupportedError #948
Replies: 4 comments 1 reply
-
Use |
Beta Was this translation helpful? Give feedback.
-
import 'dart:ui'; import 'package:bloc_architecture/domain/core/value_objects.dart'; import 'package:kt_dart/collection.dart'; part 'note_dtos.freezed.dart'; @freezed factory NoteDto.fromDomain(Note note) { factory NoteDto.fromJson(Map<String, dynamic> json) => factory NoteDto.fromFirestore(DocumentSnapshot doc) { class ServerTimestampConverter implements JsonConverter<FieldValue, Object> { @OverRide @OverRide extension NoteDtoX on NoteDto { @freezed factory TodoItemDto.fromDomain(TodoItem todoItem) { factory TodoItemDto.fromJson(Map<String, dynamic> json) => extension TodoItemDtoX on TodoItemDto { |
Beta Was this translation helpful? Give feedback.
-
// coverage:ignore-file part of 'note_dtos.dart'; // ************************************************************************** T _$identity(T value) => value; final _privateConstructorUsedError = UnsupportedError( NoteDto _$NoteDtoFromJson(Map<String, dynamic> json) { /// @Nodoc Map<String, dynamic> toJson() => throw _privateConstructorUsedError; /// @Nodoc /// @Nodoc // ignore: unused_field @pragma('vm:prefer-inline') /// @Nodoc /// @Nodoc @pragma('vm:prefer-inline') /// @Nodoc factory _$NoteDtoImpl.fromJson(Map<String, dynamic> json) => @OverRide @OverRide @OverRide @OverRide @jsonkey(ignore: true) @jsonkey(ignore: true) @OverRide abstract class _NoteDto implements NoteDto { factory _NoteDto.fromJson(Map<String, dynamic> json) = _$NoteDtoImpl.fromJson; @OverRide TodoItemDto _$TodoItemDtoFromJson(Map<String, dynamic> json) { /// @Nodoc Map<String, dynamic> toJson() => throw _privateConstructorUsedError; /// @Nodoc /// @Nodoc // ignore: unused_field @pragma('vm:prefer-inline') /// @Nodoc /// @Nodoc @pragma('vm:prefer-inline') /// @Nodoc factory _$TodoItemDtoImpl.fromJson(Map<String, dynamic> json) => @OverRide @OverRide @OverRide @jsonkey(ignore: true) @jsonkey(ignore: true) @OverRide abstract class _TodoItemDto implements TodoItemDto { factory _TodoItemDto.fromJson(Map<String, dynamic> json) = @OverRide |
Beta Was this translation helpful? Give feedback.
-
I am getting _privateConstructorUsedError error in freezed generated file |
Beta Was this translation helpful? Give feedback.
-
Can anyone tell me what's wrong here
pubspect yaml
class
Beta Was this translation helpful? Give feedback.
All reactions