Transfer.fromJson constructor

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

Implementation

factory Transfer.fromJson(Map<String, dynamic> json) => Transfer(
  fungibleInfo: json['fungible_info'] == null
      ? null
      : FungibleInfo.fromJson(json['fungible_info']),
  nftInfo: json['nft_info'] == null
      ? null
      : NftInfo.fromJson(json['nft_info']),
  direction: json['direction'],
  quantity: json['quantity'] == null
      ? null
      : Quantity.fromJson(json['quantity']),
  value: json['value']?.toDouble(),
  price: json['price']?.toDouble(),
);