Skip to main content

Class: JsonModelService

Constructors​

constructor​

• new JsonModelService(apHelper, idGenerator, apService)

Parameters​

NameType
apHelperApHelper
idGeneratorIdGenerator
apServiceApService

Defined in​

ng-application-profile/src/lib/services/json-model.service.ts:14

Methods​

_fromGraph​

â–¸ Private _fromGraph(o, graph, allUnflattened, ap): unknown

Parameters​

NameType
ounknown
graphJsonModelFlatGraph<JsonModelFlat<JsonModel>>
allUnflattenedJsonModels<JsonModel>
apApplicationProfile

Returns​

unknown

Defined in​

ng-application-profile/src/lib/services/json-model.service.ts:56


_toGraph​

â–¸ Private _toGraph(o, all): unknown

Parameters​

NameType
ounknown
allJsonModelFlatGraph<JsonModelFlat<JsonModel>>

Returns​

unknown

Defined in​

ng-application-profile/src/lib/services/json-model.service.ts:86


createNewJsonModel​

â–¸ createNewJsonModel(types, apLike, root?): JsonModel

Parameters​

NameType
typesMany<string>
apLikeApplicationProfileOrApName
root?string | JsonModel

Returns​

JsonModel

Defined in​

ng-application-profile/src/lib/services/json-model.service.ts:28


fromFlatGraph​

â–¸ fromFlatGraph<T>(graph, apLike): T

Type parameters​

NameType
Textends JsonModel

Parameters​

NameType
graphJsonModelFlatGraph<JsonModelFlat<JsonModel>>
apLikeApplicationProfileOrApName

Returns​

T

Defined in​

ng-application-profile/src/lib/services/json-model.service.ts:22


toFlatGraph​

â–¸ toFlatGraph(root): JsonModelFlatGraph<JsonModelFlat<JsonModel>>

Parameters​

NameType
rootJsonModel

Returns​

JsonModelFlatGraph<JsonModelFlat<JsonModel>>

Defined in​

ng-application-profile/src/lib/services/json-model.service.ts:16