Companion

object Companion

Functions

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

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

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

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