ContainerVersion.fromJson constructor

ContainerVersion.fromJson(
  1. Map json_
)

Implementation

ContainerVersion.fromJson(core.Map json_)
    : this(
        accountId: json_.containsKey('accountId')
            ? json_['accountId'] as core.String
            : null,
        builtInVariable: json_.containsKey('builtInVariable')
            ? (json_['builtInVariable'] as core.List)
                .map((value) => BuiltInVariable.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        client: json_.containsKey('client')
            ? (json_['client'] as core.List)
                .map((value) => Client.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        container: json_.containsKey('container')
            ? Container.fromJson(
                json_['container'] as core.Map<core.String, core.dynamic>)
            : null,
        containerId: json_.containsKey('containerId')
            ? json_['containerId'] as core.String
            : null,
        containerVersionId: json_.containsKey('containerVersionId')
            ? json_['containerVersionId'] as core.String
            : null,
        customTemplate: json_.containsKey('customTemplate')
            ? (json_['customTemplate'] as core.List)
                .map((value) => CustomTemplate.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        deleted: json_.containsKey('deleted')
            ? json_['deleted'] as core.bool
            : null,
        description: json_.containsKey('description')
            ? json_['description'] as core.String
            : null,
        fingerprint: json_.containsKey('fingerprint')
            ? json_['fingerprint'] as core.String
            : null,
        folder: json_.containsKey('folder')
            ? (json_['folder'] as core.List)
                .map((value) => Folder.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        gtagConfig: json_.containsKey('gtagConfig')
            ? (json_['gtagConfig'] as core.List)
                .map((value) => GtagConfig.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        path: json_.containsKey('path') ? json_['path'] as core.String : null,
        tag: json_.containsKey('tag')
            ? (json_['tag'] as core.List)
                .map((value) => Tag.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        tagManagerUrl: json_.containsKey('tagManagerUrl')
            ? json_['tagManagerUrl'] as core.String
            : null,
        transformation: json_.containsKey('transformation')
            ? (json_['transformation'] as core.List)
                .map((value) => Transformation.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        trigger: json_.containsKey('trigger')
            ? (json_['trigger'] as core.List)
                .map((value) => Trigger.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        variable: json_.containsKey('variable')
            ? (json_['variable'] as core.List)
                .map((value) => Variable.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        zone: json_.containsKey('zone')
            ? (json_['zone'] as core.List)
                .map((value) => Zone.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );