mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-02-02 19:26:37 +00:00
dart linting
This commit is contained in:
parent
e8f52082da
commit
5f2b0de2d1
2 changed files with 10 additions and 10 deletions
|
@ -8,24 +8,24 @@ class Fiat {
|
|||
final String name;
|
||||
|
||||
/// Fiat name
|
||||
final Decimal min_amount;
|
||||
final Decimal minAmount;
|
||||
|
||||
/// Fiat name
|
||||
final Decimal max_amount;
|
||||
final Decimal maxAmount;
|
||||
|
||||
Fiat(
|
||||
{required this.ticker,
|
||||
required this.name,
|
||||
required this.min_amount,
|
||||
required this.max_amount});
|
||||
required this.minAmount,
|
||||
required this.maxAmount});
|
||||
|
||||
factory Fiat.fromJson(Map<String, dynamic> json) {
|
||||
try {
|
||||
return Fiat(
|
||||
ticker: "${json['ticker']}",
|
||||
name: "${json['name']}", // TODO nameFromTicker
|
||||
min_amount: Decimal.parse("${json['min_amount'] ?? 0}"),
|
||||
max_amount: Decimal.parse("${json['max_amount'] ?? 0}"),
|
||||
minAmount: Decimal.parse("${json['minAmount'] ?? 0}"),
|
||||
maxAmount: Decimal.parse("${json['maxAmount'] ?? 0}"),
|
||||
);
|
||||
} catch (e) {
|
||||
rethrow;
|
||||
|
@ -36,8 +36,8 @@ class Fiat {
|
|||
final map = {
|
||||
"ticker": ticker,
|
||||
"name": name,
|
||||
"min_amount": min_amount,
|
||||
"max_amount": max_amount,
|
||||
"min_amount": minAmount,
|
||||
"max_amount": maxAmount,
|
||||
};
|
||||
|
||||
return map;
|
||||
|
|
|
@ -137,8 +137,8 @@ class SimplexAPI {
|
|||
'ticker': "${fiat['ticker_symbol']}",
|
||||
'name': fiatFromTickerCaseInsensitive("${fiat['ticker_symbol']}")
|
||||
.prettyName,
|
||||
'min_amount': "${fiat['min_amount']}",
|
||||
'max_amount': "${fiat['max_amount']}",
|
||||
'minAmount': "${fiat['min_amount']}",
|
||||
'maxAmount': "${fiat['max_amount']}",
|
||||
'image': "",
|
||||
}));
|
||||
} // TODO handle else
|
||||
|
|
Loading…
Reference in a new issue