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,
        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,
        deleted: json_.containsKey('deleted')
            ? json_['deleted'] as core.bool
            : 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,
        macro: json_.containsKey('macro')
            ? (json_['macro'] as core.List)
                .map((value) => Macro.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        notes:
            json_.containsKey('notes') ? json_['notes'] as core.String : null,
        rule: json_.containsKey('rule')
            ? (json_['rule'] as core.List)
                .map((value) => Rule.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        tag: json_.containsKey('tag')
            ? (json_['tag'] as core.List)
                .map((value) => Tag.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,
      );