mverse library

Classes

DefaultMEntity
DefaultMModelList<M>
Definition
Definitions
Entity
EntityExtensions
HasBaseCode
HasMverseMeta
ISchemaProperty
MArtifactRef
MBaseModel
MEntity
Represents an entity defined by a json-schema that's backed by json value using the wrapped field. A MModel is a non-persisted entity, where as MEntity represents a persisted entity that has an ID
Contains all registered enum types to support deserialization.
MKey
Inside the sunny datastore, each record is identified by a key that provides 3 parts:
MMeta
MModel
Represents an entity defined by a json-schema.
MModelList<M>
MModelRegistry
Contains all registered MBaseModel types to support deserialization. The registry reads the mtype property in the json object, and finds the appropriate factory method.
MModuleRef
MOperationRef
A reference that points to a versioned json-schema for an operation or action
MSchemaRef
A reference that points to a versioned json-schema for an entity
MSchemaTypes
Mverse
RecordKey

Constants

metaFields → const Set<String>
Fields in the json payload that are metadata (not values)
operation → const String
schema → const String

Properties

no setter
mmodelRegistry MModelRegistry
no setter

Functions

extractMverseType(Map<String, dynamic> map) String?
initializeMEnumRegistry(MEnumRegistry registry) → dynamic
initializeMModelRegistry(MModelRegistry registry) → dynamic
jsonLiteral(dynamic element) → dynamic
parseUris(dynamic uris) List<Uri>

Typedefs

MModelFactory<M extends MBaseModel> = M Function(dynamic json)
Given json, produces an MBaseModel of that type
MModelFactoryResolver<M extends MBaseModel> = MModelFactory<M>? Function(String type)
Given a string, returns a function that knows how to instantiate objects of that type
TypeExtractor = String? Function(Map<String, dynamic> json)
Attempts to determine the entity type