Executes and returns fb(this.b)
if this is a JsonValueBoolean, else return a Left with an error message
Applies a function corresponding to this
's type
Applies a function corresponding to this
's type
the function to apply if this
is a JsonValueString
the function to apply if this
is a JsonValueNumber
the function to apply if this
is a JsonValueBoolean
the function to apply if this
is a JsonValueNull
the results of applying the corresponding function
Executes then(this.s)
if this is a JsonValueBoolean; otherwise executes else(this)
Executes then(this.s)
if this is a JsonValueBoolean; otherwise executes else(this)
4.0
Executes then(this.s)
if this is a JsonValueNumber containing an Int; otherwise executes else(this)
Executes then(this.s)
if this is a JsonValueNumber containing an Int; otherwise executes else(this)
4.0
Executes then(this.s)
if this is a JsonValueNumber; otherwise executes else(this)
Executes then(this.s)
if this is a JsonValueNumber; otherwise executes else(this)
4.0
Executes then(this.s)
if this is a JsonValueString; otherwise executes else(this)
Executes then(this.s)
if this is a JsonValueString; otherwise executes else(this)
4.0
Executes and returns fi(this.i)
if this is a JsonValueNumber which holds an number convertible to integer, else return a Left with an error message.
Executes and returns fn(this.i)
if this is a JsonValueNumber, else return a Left with an error message.
Executes and returns fs(this.s)
if this is a JsonValueString, else return a Left with an error message
A union type representing primitive types in Json objects
4.0
3.0