-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1398995
commit deb8744
Showing
9 changed files
with
135 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
class Coin { | ||
String? name; | ||
String? currentPrice; | ||
String? high; | ||
String? low; | ||
String? change; | ||
String? percent; | ||
String? time; | ||
|
||
Coin( | ||
this.name, | ||
this.currentPrice, | ||
this.high, | ||
this.low, | ||
this.change, | ||
this.percent, | ||
this.time, | ||
); | ||
|
||
factory Coin.fromMapJson(Map<String, dynamic> jsonObject) { | ||
return Coin( | ||
jsonObject["name"], | ||
jsonObject["p"], | ||
jsonObject["h"], | ||
jsonObject["l"], | ||
jsonObject["d"], | ||
jsonObject["dp"].toString(), | ||
jsonObject["ts"], | ||
); | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
class Currency { | ||
String? name; | ||
String? currentPrice; | ||
String? high; | ||
String? low; | ||
String? change; | ||
String? percent; | ||
String? time; | ||
|
||
Currency( | ||
this.name, | ||
this.currentPrice, | ||
this.high, | ||
this.low, | ||
this.change, | ||
this.percent, | ||
this.time, | ||
); | ||
|
||
factory Currency.fromMapJson(Map<String, dynamic> jsonObject) { | ||
return Currency( | ||
jsonObject["name"], | ||
jsonObject["p"], | ||
jsonObject["h"], | ||
jsonObject["l"], | ||
jsonObject["d"], | ||
jsonObject["dp"].toString(), | ||
jsonObject["ts"], | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
class Gold { | ||
String? name; | ||
String? currentPrice; | ||
String? high; | ||
String? low; | ||
String? change; | ||
String? percent; | ||
String? time; | ||
|
||
Gold( | ||
this.name, | ||
this.currentPrice, | ||
this.high, | ||
this.low, | ||
this.change, | ||
this.percent, | ||
this.time, | ||
); | ||
|
||
factory Gold.fromMapJson(Map<String, dynamic> jsonObject) { | ||
return Gold( | ||
jsonObject["name"], | ||
jsonObject["p"], | ||
jsonObject["h"], | ||
jsonObject["l"], | ||
jsonObject["d"], | ||
jsonObject["dp"].toString(), | ||
jsonObject["ts"], | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters