RevisionSpec.fromJson constructor

RevisionSpec.fromJson(
  1. Map json_
)

Implementation

RevisionSpec.fromJson(core.Map json_)
    : this(
        containerConcurrency: json_.containsKey('containerConcurrency')
            ? json_['containerConcurrency'] as core.int
            : null,
        containers: json_.containsKey('containers')
            ? (json_['containers'] as core.List)
                .map((value) => Container.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        enableServiceLinks: json_.containsKey('enableServiceLinks')
            ? json_['enableServiceLinks'] as core.bool
            : null,
        imagePullSecrets: json_.containsKey('imagePullSecrets')
            ? (json_['imagePullSecrets'] as core.List)
                .map((value) => LocalObjectReference.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        serviceAccountName: json_.containsKey('serviceAccountName')
            ? json_['serviceAccountName'] as core.String
            : null,
        timeoutSeconds: json_.containsKey('timeoutSeconds')
            ? json_['timeoutSeconds'] as core.int
            : null,
        volumes: json_.containsKey('volumes')
            ? (json_['volumes'] as core.List)
                .map((value) => Volume.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );