728x90
freezed로 만든 classmodel을
freezed로 만든 class model안에 넣으면, 실제로 fromjson으로 불러 올 때 문제가 발생하는 것이다!
https://github.com/rrousselGit/freezed/issues/86
Nested Freezed class not converted TO JSON · Issue #86 · rrousselGit/freezed
👋 Given two freezed classes where one is "nested" in the other. import 'package:freezed_annotation/freezed_annotation.dart'; part 'contrived_example.g.dart'; part 'con...
github.com
야매인거 같긴 한데 되긴된다..
Generated class from freezed creates duplicate FromJson method
I have a class which I am trying to use with Freezed, Json Serializable, and Hive. After running dart run build_runner build and generating the necessary classes, my compiler gives me the following...
stackoverflow.com
![](https://t1.daumcdn.net/keditor/emoticon/friends1/large/002.gif)
728x90
'개발 > Flutter' 카테고리의 다른 글
static 변수만 사용하고 constructor 쓸 필요 없는 class (0) | 2022.09.01 |
---|---|
flutter google map crash (0) | 2022.08.29 |
math log 사용하기 (0) | 2022.08.23 |
list에 있는 값들 모두 합치기 (0) | 2022.08.23 |
flutter hive (0) | 2022.08.15 |