Companion

object Companion

Functions

Link copied to clipboard
fun create(from: String, data: BalanceData, protocol: String = "1.0"): Balance

Creates a new Balance resource, autopopulating the id, creation/updated time, and resource kind.

Link copied to clipboard
fun parse(payload: String): Balance

Takes an existing Balance in the form of a json string and parses it into a Balance object. Validates object structure and performs an integrity check using the signature.