Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

json_annotation을 활용한 toJson 구현 및 toInt() 메소드 적용 #140

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,19 @@ environment:
sdk: ">=2.13.0 <3.0.0"

dependencies:
flutter:
sdk: flutter
# The following adds the Cupertino Icons font to your application.
# Use with the CupertinoIcons class for iOS style icons.
cupertino_icons: ^1.0.3
flutter:
sdk: flutter
get: ^4.6.0
iamport_flutter:
path: ../

dev_dependencies:
flutter_test:
sdk: flutter

iamport_flutter:
path: ../

# For information on the generic Dart part of this file, see the
# following page: https://www.dartlang.org/tools/pub/pubspec

Expand Down
2 changes: 1 addition & 1 deletion lib/model/certification_data.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 6 additions & 4 deletions lib/model/payment_data.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/model/pg/daou/daou.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions lib/model/pg/kcp/kcp_products.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

30 changes: 16 additions & 14 deletions lib/model/pg/naver/naver_co_products.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/model/pg/naver/naver_pay_products.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions lib/model/pg/naver/naver_products.dart
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,6 @@ abstract class NaverProducts {
return NaverPayProducts.fromJson(json);
}
}

Map<String, dynamic> toJson() => _$NaverProductsToJson(this);
}
8 changes: 4 additions & 4 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,21 @@ version: 0.10.19
homepage: https://github.com/iamport/iamport_flutter

environment:
sdk: '>=2.17.0 <4.0.0'
sdk: ">=2.17.0 <4.0.0"
flutter: ">=2.5.0"

dependencies:
app_links: ^6.1.1
flutter:
sdk: flutter
iamport_webview_flutter: 3.0.7
url_launcher: ^6.0.4
app_links: ^6.1.1
json_annotation: ^4.8.1
url_launcher: ^6.0.4

dev_dependencies:
test: ^1.19.0
build_runner: ^2.0.0
json_serializable: ^6.7.1
test: ^1.19.0

# For information on the generic Dart part of this file, see the
# following page: https://www.dartlang.org/tools/pub/pubspec
Expand Down