CustomTemplate.fromJson constructor

CustomTemplate.fromJson(
  1. Map json_
)

Implementation

CustomTemplate.fromJson(core.Map json_)
    : this(
        accountId: json_.containsKey('accountId')
            ? json_['accountId'] as core.String
            : null,
        containerId: json_.containsKey('containerId')
            ? json_['containerId'] as core.String
            : null,
        fingerprint: json_.containsKey('fingerprint')
            ? json_['fingerprint'] as core.String
            : null,
        galleryReference: json_.containsKey('galleryReference')
            ? GalleryReference.fromJson(json_['galleryReference']
                as core.Map<core.String, core.dynamic>)
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        path: json_.containsKey('path') ? json_['path'] as core.String : null,
        tagManagerUrl: json_.containsKey('tagManagerUrl')
            ? json_['tagManagerUrl'] as core.String
            : null,
        templateData: json_.containsKey('templateData')
            ? json_['templateData'] as core.String
            : null,
        templateId: json_.containsKey('templateId')
            ? json_['templateId'] as core.String
            : null,
        workspaceId: json_.containsKey('workspaceId')
            ? json_['workspaceId'] as core.String
            : null,
      );