of_the_record static method

IcpTokens of_the_record(
  1. CandidType icptokensrecord
)

Implementation

static IcpTokens of_the_record(CandidType icptokensrecord) {
    Nat64 e8s_nat64 = (icptokensrecord as Record)['e8s'] as Nat64;
    return IcpTokens(
        e8s: e8s_nat64.value
    );
}