OrderBookResponse.fromJson constructor Null safety

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

Implementation

factory OrderBookResponse.fromJson(Map<String, dynamic> json) => OrderBookResponse(
    Asset.fromJson(json['base']),
    Asset.fromJson(json['counter']),
    (json['asks'] as List).map((e) => Row.fromJson(e)).toList(),
    (json['bids'] as List).map((e) => Row.fromJson(e)).toList())
  ..rateLimitLimit = convertInt(json['rateLimitLimit'])
  ..rateLimitRemaining = convertInt(json['rateLimitRemaining'])
  ..rateLimitReset = convertInt(json['rateLimitReset']);