Estimation.fromJson constructor

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

Implementation

factory Estimation.fromJson(Map<String, dynamic> json) => Estimation(
    srcChainTokenIn: TokenIn.fromJson(json['srcChainTokenIn']),
    dstChainTokenOut: TokenOut.fromJson(json['dstChainTokenOut']),
    costsDetails: List.from(json['costsDetails'])
        .map((json) => Details.fromJson(json))
        .toList(),
    recommendedSlippage: json['recommendedSlippage']);