Skip to content

Commit c10c54d

Browse files
committed
Add deserialization ctor to LocalValue.BigInt
1 parent 882e13a commit c10c54d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

dotnet/src/webdriver/BiDi/Modules/Script/LocalValue.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,12 @@ public BigInt(BigInteger value)
141141
{
142142
Value = value;
143143
}
144+
145+
[JsonConstructor]
146+
internal BigInt(string valueAsString)
147+
{
148+
Value = BigInteger.Parse(valueAsString);
149+
}
144150
}
145151

146152
public record Boolean(bool Value) : PrimitiveProtocolLocalValue;

0 commit comments

Comments
 (0)