LedgerResponse.fromJson constructor
LedgerResponse.fromJson(
- Map<String, dynamic> json
)
Implementation
factory LedgerResponse.fromJson(Map<String, dynamic> json) => LedgerResponse(
convertInt(json['sequence'])!,
json['hash'],
json['id'],
json['paging_token'],
json['prev_hash'],
convertInt(json['successful_transaction_count'])!,
convertInt(json['failed_transaction_count'])!,
convertInt(json['operation_count'])!,
convertInt(json['tx_set_operation_count'])!,
json['closed_at'],
json['total_coins'],
json['fee_pool'],
convertInt(json['base_fee_in_stroops'])!,
convertInt(json['base_reserve_in_stroops'])!,
convertInt(json['max_tx_set_size'])!,
convertInt(json['protocol_version'])!,
json['header_xdr'],
LedgerResponseLinks.fromJson(json['_links']))
..rateLimitLimit = convertInt(json['rateLimitLimit'])
..rateLimitRemaining = convertInt(json['rateLimitRemaining'])
..rateLimitReset = convertInt(json['rateLimitReset']);