OSPolicyResourceRepositoryResourceAptRepository.fromJson constructor

OSPolicyResourceRepositoryResourceAptRepository.fromJson(
  1. Map json_
)

Implementation

OSPolicyResourceRepositoryResourceAptRepository.fromJson(core.Map json_)
    : this(
        archiveType: json_.containsKey('archiveType')
            ? json_['archiveType'] as core.String
            : null,
        components: json_.containsKey('components')
            ? (json_['components'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        distribution: json_.containsKey('distribution')
            ? json_['distribution'] as core.String
            : null,
        gpgKey: json_.containsKey('gpgKey')
            ? json_['gpgKey'] as core.String
            : null,
        uri: json_.containsKey('uri') ? json_['uri'] as core.String : null,
      );