RemoteRepositoryConfig.fromJson constructor

RemoteRepositoryConfig.fromJson(
  1. Map json_
)

Implementation

RemoteRepositoryConfig.fromJson(core.Map json_)
    : this(
        aptRepository: json_.containsKey('aptRepository')
            ? AptRepository.fromJson(
                json_['aptRepository'] as core.Map<core.String, core.dynamic>)
            : null,
        description: json_.containsKey('description')
            ? json_['description'] as core.String
            : null,
        disableUpstreamValidation:
            json_.containsKey('disableUpstreamValidation')
                ? json_['disableUpstreamValidation'] as core.bool
                : null,
        dockerRepository: json_.containsKey('dockerRepository')
            ? DockerRepository.fromJson(json_['dockerRepository']
                as core.Map<core.String, core.dynamic>)
            : null,
        mavenRepository: json_.containsKey('mavenRepository')
            ? MavenRepository.fromJson(json_['mavenRepository']
                as core.Map<core.String, core.dynamic>)
            : null,
        npmRepository: json_.containsKey('npmRepository')
            ? NpmRepository.fromJson(
                json_['npmRepository'] as core.Map<core.String, core.dynamic>)
            : null,
        pythonRepository: json_.containsKey('pythonRepository')
            ? PythonRepository.fromJson(json_['pythonRepository']
                as core.Map<core.String, core.dynamic>)
            : null,
        upstreamCredentials: json_.containsKey('upstreamCredentials')
            ? UpstreamCredentials.fromJson(json_['upstreamCredentials']
                as core.Map<core.String, core.dynamic>)
            : null,
        yumRepository: json_.containsKey('yumRepository')
            ? YumRepository.fromJson(
                json_['yumRepository'] as core.Map<core.String, core.dynamic>)
            : null,
      );