Function_.fromJson constructor

Function_.fromJson(
  1. Map json_
)

Implementation

Function_.fromJson(core.Map json_)
    : this(
        buildConfig: json_.containsKey('buildConfig')
            ? BuildConfig.fromJson(
                json_['buildConfig'] as core.Map<core.String, core.dynamic>)
            : null,
        createTime: json_.containsKey('createTime')
            ? json_['createTime'] as core.String
            : null,
        description: json_.containsKey('description')
            ? json_['description'] as core.String
            : null,
        environment: json_.containsKey('environment')
            ? json_['environment'] as core.String
            : null,
        eventTrigger: json_.containsKey('eventTrigger')
            ? EventTrigger.fromJson(
                json_['eventTrigger'] as core.Map<core.String, core.dynamic>)
            : null,
        kmsKeyName: json_.containsKey('kmsKeyName')
            ? json_['kmsKeyName'] 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,
        satisfiesPzs: json_.containsKey('satisfiesPzs')
            ? json_['satisfiesPzs'] as core.bool
            : null,
        serviceConfig: json_.containsKey('serviceConfig')
            ? ServiceConfig.fromJson(
                json_['serviceConfig'] as core.Map<core.String, core.dynamic>)
            : null,
        state:
            json_.containsKey('state') ? json_['state'] as core.String : null,
        stateMessages: json_.containsKey('stateMessages')
            ? (json_['stateMessages'] as core.List)
                .map((value) => GoogleCloudFunctionsV2StateMessage.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        updateTime: json_.containsKey('updateTime')
            ? json_['updateTime'] as core.String
            : null,
        upgradeInfo: json_.containsKey('upgradeInfo')
            ? UpgradeInfo.fromJson(
                json_['upgradeInfo'] as core.Map<core.String, core.dynamic>)
            : null,
        url: json_.containsKey('url') ? json_['url'] as core.String : null,
      );