UnstakeInfo.fromJson constructor

UnstakeInfo.fromJson(
  1. Map<String, dynamic> data
)

Implementation

factory UnstakeInfo.fromJson(Map<String, dynamic> data) {
  return UnstakeInfo(
    hash: data['hash'],
    epoch: data['epoch'],
    timestamp: data['timestamp'],
    block: data['block'],
    confirmed: data['confirmed'],
    reverted: data['reverted'],
    validator: data['validator'],
    withdrawer: data['withdrawer'],
    unstakeValue: data['unstake_value'],
    fee: data['fee'],
    nonce: data['nonce'],
    weight: data['weight'],
  );
}