OSPolicyResourceRepositoryResourceZypperRepository.fromJson constructor

OSPolicyResourceRepositoryResourceZypperRepository.fromJson(
  1. Map _json
)

Implementation

OSPolicyResourceRepositoryResourceZypperRepository.fromJson(core.Map _json)
    : this(
        baseUrl: _json.containsKey('baseUrl')
            ? _json['baseUrl'] as core.String
            : null,
        displayName: _json.containsKey('displayName')
            ? _json['displayName'] as core.String
            : null,
        gpgKeys: _json.containsKey('gpgKeys')
            ? (_json['gpgKeys'] as core.List)
                .map<core.String>((value) => value as core.String)
                .toList()
            : null,
        id: _json.containsKey('id') ? _json['id'] as core.String : null,
      );