Description:
In the future, we need to support an API that directly binds the value produced by the fromBytes() method to a Ballerina record type and performs constraint validation. We could introduce a similar API as shown below:
public isolated function fromBytesWithType(byte[] bytes, string? targetRecordName = (),
Encoding encoding = ASCII, typedesc<record{}> targetType = <>) returns targetType|Error;
Description: In the future, we need to support an API that directly binds the value produced by the
fromBytes()
method to a Ballerina record type and performs constraint validation. We could introduce a similar API as shown below:Describe your problem(s)
Describe your solution(s)
Related Issues (optional):
Suggested Labels (optional):
Suggested Assignees (optional):