RootResponse.fromJson constructor
RootResponse.fromJson(- Map<String, dynamic> json
)
Implementation
factory RootResponse.fromJson(Map<String, dynamic> json) => new RootResponse(
json['horizon_version'] as String,
json['core_version'] as String,
convertInt(json['history_latest_ledger']),
convertInt(json['history_elder_ledger']),
convertInt(json['core_latest_ledger']),
json['network_passphrase'] as String,
convertInt(json['protocol_version']),
convertInt(json['current_protocol_version']),
convertInt(json['core_supported_protocol_version']))
..rateLimitLimit = convertInt(json['rateLimitLimit'])
..rateLimitRemaining = convertInt(json['rateLimitRemaining'])
..rateLimitReset = convertInt(json['rateLimitReset']);