fromData static method
Implementation
static MsgTransfer fromData(MsgTransferDataArgs data) {
if (data.timeout_Height == null && data.timeout_Timestamp == null) {
throw Exception(
"both of timeout_height and timeout_timestamp are undefined");
}
return MsgTransfer(
data.source_Port!,
data.source_Channel!,
Coin.fromData(data.token!),
data.sender!,
data.receiver!,
Height.fromData(data.timeout_Height!),
double.parse(data.timeout_Timestamp!));
}