getRecoverNestedAssociatedTokenInstructionDataDecoder function
Decoder<RecoverNestedAssociatedTokenInstructionData>
getRecoverNestedAssociatedTokenInstructionDataDecoder()
Returns the decoder for RecoverNestedAssociatedTokenInstructionData.
Implementation
Decoder<RecoverNestedAssociatedTokenInstructionData>
getRecoverNestedAssociatedTokenInstructionDataDecoder() {
final structDecoder = getStructDecoder(<(String, Decoder<Object?>)>[
('discriminator', getU8Decoder()),
]);
return transformDecoder(
structDecoder,
(map, bytes, offset) => RecoverNestedAssociatedTokenInstructionData(
discriminator: map['discriminator']! as int,
),
);
}