RootResponse.fromJson constructor

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

Implementation

factory RootResponse.fromJson(Map<String, dynamic> json) => new RootResponse(
    json['horizon_version'],
    json['core_version'],
    convertInt(json['history_latest_ledger'])!,
    json['history_latest_ledger_closed_at'],
    convertInt(json['history_elder_ledger'])!,
    convertInt(json['core_latest_ledger'])!,
    json['network_passphrase'],
    convertInt(json['current_protocol_version'])!,
    convertInt(json['supported_protocol_version'])!,
    convertInt(json['core_supported_protocol_version'])!)
  ..rateLimitLimit = convertInt(json['rateLimitLimit'])
  ..rateLimitRemaining = convertInt(json['rateLimitRemaining'])
  ..rateLimitReset = convertInt(json['rateLimitReset']);