ERC20Entity.fromJson constructor

ERC20Entity.fromJson(
  1. Map<String, dynamic> json, {
  2. required bool allowDeletion,
  3. required int chainID,
})

Implementation

factory ERC20Entity.fromJson(
  Map<String, dynamic> json, {
  required bool allowDeletion,
  required int chainID,
}) {
  return ERC20Entity(
    name: json['name'],
    symbol: json['symbol'],
    decimals: json['decimals'],
    contractAddress: json['contractAddress'],
    allowDeletion: allowDeletion,
    chainID: chainID,
  );
}