Company.fromJson constructor

Company.fromJson(
  1. Map<String, dynamic> json
)

Implementation

Company.fromJson(Map<String, dynamic> json)
    : this.name = Convert.toStr(json['name'], ''),
      this.symbol = Convert.toStr(json['symbol'], ''),
      this.country = Convert.toStr(json['country'], ''),
      this.totalHoldings = Convert.toDouble(json['total_holdings'], 0),
      this.totalEntryValueUsd =
          Convert.toDouble(json['total_entry_value_usd'], 0),
      this.totalCurrentValueUsd =
          Convert.toDouble(json['total_current_value_usd'], 0),
      this.percentageOfTotalSupply =
          Convert.toDouble(json['percentage_of_total_supply'], 0);