StateResponse.fromJson constructor

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

Implementation

factory StateResponse.fromJson(Map<String, dynamic> json) {
  Network network = Network.fromJson(json['network']);
  Metrics metrics = Metrics.fromJson(json['metrics']);
  Rollup rollup = Rollup.fromJson(json['rollup']);
  WithdrawalDelayer withdrawalDelayer =
      WithdrawalDelayer.fromJson(json['withdrawalDelayer']);
  RecommendedFee recommendedFee =
      RecommendedFee.fromJson(json['recommendedFee']);
  return StateResponse(
      network: network,
      metrics: metrics,
      rollup: rollup,
      auction: json['auction'],
      withdrawalDelayer: withdrawalDelayer,
      recommendedFee: recommendedFee);
}