Drift Engine Documentation
Toggle table of contents
1.0.0
common
Target filter
common
Switch theme
Search in API
Skip to content
Drift Engine Documentation
core
/
dev.gmitch215.drift.contract
/
Contract
/
Companion
Companion
object
Companion
(
source
)
Members
Properties
FORMAT
Link copied to clipboard
const
val
FORMAT
:
String
SCHEMA
Link copied to clipboard
const
val
SCHEMA
:
Long
=
1
Functions
create
Link copied to clipboard
fun
create
(
greens
:
List
<
Capsule
>
,
reds
:
List
<
Capsule
>
=
emptyList()
)
:
ContractResult
greens
must not be empty;
reds
may be. Capsule order does not change the result.
from
Json
Link copied to clipboard
fun
fromJson
(
json
:
JsonValue
)
:
Contract
parse
Link copied to clipboard
fun
parse
(
text
:
String
)
:
Contract