TransactionFees.fromMap constructor
TransactionFees.fromMap(- Map<String, dynamic> map
)
Implementation
TransactionFees.fromMap(Map<String, dynamic> map) {
if (map.containsKey('in_msg_fwd_fee') && (map['in_msg_fwd_fee'] != null)) {
_in_msg_fwd_fee = BigInt.from(map['in_msg_fwd_fee']);
} else {
throw ('Wrong map data');
}
if (map.containsKey('storage_fee') && (map['storage_fee'] != null)) {
_storage_fee = BigInt.from(map['storage_fee']);
} else {
throw ('Wrong map data');
}
if (map.containsKey('gas_fee') && (map['gas_fee'] != null)) {
_gas_fee = BigInt.from(map['gas_fee']);
} else {
throw ('Wrong map data');
}
if (map.containsKey('out_msgs_fwd_fee') &&
(map['out_msgs_fwd_fee'] != null)) {
_out_msgs_fwd_fee = BigInt.from(map['out_msgs_fwd_fee']);
} else {
throw ('Wrong map data');
}
if (map.containsKey('total_account_fees') &&
(map['total_account_fees'] != null)) {
_total_account_fees = BigInt.from(map['total_account_fees']);
} else {
throw ('Wrong map data');
}
if (map.containsKey('total_output') && (map['total_output'] != null)) {
_total_output = BigInt.from(map['total_output']);
} else {
throw ('Wrong map data');
}
}