Workflow.fromJson constructor

Workflow.fromJson(
  1. Map json_
)

Implementation

Workflow.fromJson(core.Map json_)
    : this(
        allKmsKeys: json_.containsKey('allKmsKeys')
            ? (json_['allKmsKeys'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        allKmsKeysVersions: json_.containsKey('allKmsKeysVersions')
            ? (json_['allKmsKeysVersions'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        callLogLevel: json_.containsKey('callLogLevel')
            ? json_['callLogLevel'] as core.String
            : null,
        createTime: json_.containsKey('createTime')
            ? json_['createTime'] as core.String
            : null,
        cryptoKeyName: json_.containsKey('cryptoKeyName')
            ? json_['cryptoKeyName'] as core.String
            : null,
        cryptoKeyVersion: json_.containsKey('cryptoKeyVersion')
            ? json_['cryptoKeyVersion'] as core.String
            : null,
        description: json_.containsKey('description')
            ? json_['description'] as core.String
            : null,
        labels: json_.containsKey('labels')
            ? (json_['labels'] as core.Map<core.String, core.dynamic>).map(
                (key, value) => core.MapEntry(
                  key,
                  value as core.String,
                ),
              )
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        revisionCreateTime: json_.containsKey('revisionCreateTime')
            ? json_['revisionCreateTime'] as core.String
            : null,
        revisionId: json_.containsKey('revisionId')
            ? json_['revisionId'] as core.String
            : null,
        serviceAccount: json_.containsKey('serviceAccount')
            ? json_['serviceAccount'] as core.String
            : null,
        sourceContents: json_.containsKey('sourceContents')
            ? json_['sourceContents'] as core.String
            : null,
        state:
            json_.containsKey('state') ? json_['state'] as core.String : null,
        stateError: json_.containsKey('stateError')
            ? StateError.fromJson(
                json_['stateError'] as core.Map<core.String, core.dynamic>)
            : null,
        updateTime: json_.containsKey('updateTime')
            ? json_['updateTime'] as core.String
            : null,
        userEnvVars: json_.containsKey('userEnvVars')
            ? (json_['userEnvVars'] as core.Map<core.String, core.dynamic>)
                .map(
                (key, value) => core.MapEntry(
                  key,
                  value as core.String,
                ),
              )
            : null,
      );