ServiceResolver.fromJson constructor

ServiceResolver.fromJson(
  1. Map json_
)

Implementation

ServiceResolver.fromJson(core.Map json_)
    : this(
        endpointFilter: json_.containsKey('endpointFilter')
            ? json_['endpointFilter'] as core.String
            : null,
        hostname: json_.containsKey('hostname')
            ? json_['hostname'] as core.String
            : null,
        serverCertificates: json_.containsKey('serverCertificates')
            ? (json_['serverCertificates'] as core.List)
                .map((value) => Certificate.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        serviceDirectoryService: json_.containsKey('serviceDirectoryService')
            ? json_['serviceDirectoryService'] as core.String
            : null,
      );