CoinsCurrentDataResponse.fromJson constructor
CoinsCurrentDataResponse.fromJson(
- Map<String, dynamic> json
)
Implementation
factory CoinsCurrentDataResponse.fromJson(Map<String, dynamic> json) =>
CoinsCurrentDataResponse(
id: json['id'],
symbol: json['symbol'],
name: json['name'],
assetPlatformId: json['asset_platform_id'],
platforms: Platforms.fromJson(json['platforms']),
blockTimeInMinutes: json['block_time_in_minutes'],
hashingAlgorithm: json['hashing_algorithm'],
categories: List<dynamic>.from(json['categories'].map((x) => x)),
publicNotice: json['public_notice'],
additionalNotices:
List<dynamic>.from(json['additional_notices'].map((x) => x)),
localization: CoinsCurrentTion.fromJson(json['localization']),
description: CoinsCurrentTion.fromJson(json['description']),
links: CoinsCurrentLinks.fromJson(json['links']),
image: CoinsCurrentImage.fromJson(json['image']),
countryOrigin: json['country_origin'],
genesisDate: json['genesis_date'],
contractAddress: json['contract_address'],
sentimentVotesUpPercentage:
json['sentiment_votes_up_percentage'].toDouble(),
sentimentVotesDownPercentage:
json['sentiment_votes_down_percentage'].toDouble(),
marketCapRank: json['market_cap_rank'],
coingeckoRank: json['coingecko_rank'],
coingeckoScore: json['coingecko_score'].toDouble(),
developerScore: json['developer_score'].toDouble(),
communityScore: json['community_score'].toDouble(),
liquidityScore: json['liquidity_score'].toDouble(),
publicInterestScore: json['public_interest_score'].toDouble(),
marketData: CoinsCurrentMarketData.fromJson(json['market_data']),
communityData:
CoinsCurrentCommunityData.fromJson(json['community_data']),
developerData:
CoinsCurrentDeveloperData.fromJson(json['developer_data']),
publicInterestStats: CoinsCurrentPublicInterestStats.fromJson(
json['public_interest_stats']),
statusUpdates: List<dynamic>.from(json['status_updates'].map((x) => x)),
lastUpdated: DateTime.parse(json['last_updated']),
tickers: List<CoinsCurrentTicker>.from(
json['tickers'].map((x) => CoinsCurrentTicker.fromJson(x))),
);