ParamsOfEncodeAccount.fromMap constructor

ParamsOfEncodeAccount.fromMap(
  1. Map<String, dynamic> map
)

Implementation

ParamsOfEncodeAccount.fromMap(Map<String, dynamic> map) {
  if (map.containsKey('state_init') && (map['state_init'] != null)) {
    _state_init = StateInitSource.fromMap(map['state_init']);
  } else {
    throw ('Wrong map data');
  }
  if (map.containsKey('balance')) {
    _balance = BigInt.from(map['balance']);
  }
  if (map.containsKey('last_trans_lt')) {
    _last_trans_lt = BigInt.from(map['last_trans_lt']);
  }
  if (map.containsKey('last_paid')) {
    _last_paid = map['last_paid'];
  }
}