ToData

trait ToData[E]

A mixin for ExtractSchemaKey, signalling that this particular instance of ExtractSchemaKey is intended for extracting data, not schema.

An example input is:

 {
    "schema": "iglu:com.vendor/user_entity/jsonschema/1-0-0",
    "data": {
       "id": "78abb66e-a5ad-4772-96ec-d880650cd0b2",
       "email": "[email protected]"
    }
  }

which contains information about a user that can be extracted as SelfDescribingData.

class Object
trait Matchable
class Any

Value members

Abstract methods

protected def getContent(entity: E): Either[ParseError, E]

Concrete methods

def toData(entity: E): Either[ParseError, SelfDescribingData[E]]