Details.fromJson constructor

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

Implementation

factory Details.fromJson(Map<String, dynamic> json) => Details(
    chain: json['chain'],
    tokenIn: json['tokenIn'],
    tokenOut: json['tokenOut'],
    amountIn: json['amountIn'],
    amountOut: json['amountOut'],
    type: json['type'],
    payload: json['payload'] ?? {});