CryptoCurrencyModel.fromJson constructor

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

Implementation

CryptoCurrencyModel.fromJson(Map<String, dynamic> json) {
  ticker = json['ticker'];
  name = json['name'];
  image = json['image'];
  hasExternalId = json['hasExternalId'];
  isExtraIdSupported = json['isExtraIdSupported'];
  isFiat = json['isFiat'];
  featured = json['featured'];
  isStable = json['isStable'];
  supportsFixedRate = json['supportsFixedRate'];
  network = json['network'];
  tokenContract = json['tokenContract'];
  buy = json['buy'];
  sell = json['sell'];
  legacyTicker = json['legacyTicker'];
  // Temporary Workaround for resolving CORS error.
  image =  image?.replaceAll("content.myneoconcierge.com", "neo-concierge.fra1.cdn.digitaloceanspaces.com/crypto_logos");
}