Inflearn Community Q&A
nested구조에서 JsonSerializable를 사용하고 싶을 땐 어떤 방법을 고려해야하나요?
Resolved
Written on
·
215
·
Edited
0
만약 deliveryFee에 대한 서버의 응답이 json['delivery']['fee'] 일 경우
deliveryFee 란 변수를 그대로 사용한다는 가정하에
JsonSerializable에선 어떤 방법으로 처리해줘야하는걸까요?
flutter하이브리드-앱
Answer 1
1
codefactory
Instructor
안녕하세요!
네스팅된 값을 파싱 할 수 있는 방법이 있습니다.
아래 링크 참고해주세요!
https://github.com/google/json_serializable.dart/blob/master/example/lib/nested_values_example.dart
감사합니다!





