Skip to content

Commit 132b6b8

Browse files
committed
fixed changing model of Releases -> Price issue
1 parent 3307c6d commit 132b6b8

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

lib/services/zx_api/models/item_dto.dart

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1030,7 +1030,7 @@ class Releases {
10301030
List<Publishers> publishers,
10311031
List<String> releaseTitles,
10321032
int yearOfRelease,
1033-
String releasePrice,
1033+
String releasePrice,
10341034
dynamic budgetPrice,
10351035
dynamic microdrivePrice,
10361036
dynamic diskPrice,
@@ -1066,7 +1066,8 @@ class Releases {
10661066
? json["releaseTitles"].cast<String>()
10671067
: [];
10681068
_yearOfRelease = json["yearOfRelease"];
1069-
_releasePrice = json["releasePrice"];
1069+
if (json["releasePrice"] != null)
1070+
_releasePrice = json["releasePrice"].toString();
10701071
_budgetPrice = json["budgetPrice"];
10711072
_microdrivePrice = json["microdrivePrice"];
10721073
_diskPrice = json["diskPrice"];

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
1515
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
1616
# Read more about iOS versioning at
1717
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
18-
version: 1.0.5+115
18+
version: 1.0.6+116
1919

2020
environment:
2121
sdk: ">=2.7.0 <4.0.0"

0 commit comments

Comments
 (0)