TokenTransfer.fromJson constructor

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

Implementation

factory TokenTransfer.fromJson(Map<String, dynamic> json) => TokenTransfer(
      amount: json['amount']?.toInt(),
      to: json['to'],
      tokenAddress: json['tokenAddress'],
      tokenId: json['tokenId']?.toInt(),
    );