Details.fromJson constructor
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'] ?? {});