ClientConfig.fromJson constructor

ClientConfig.fromJson(
  1. Map json_
)

Implementation

ClientConfig.fromJson(core.Map json_)
    : this(
        clientScope: json_.containsKey('clientScope')
            ? json_['clientScope'] as core.String
            : null,
        genericXdsConfigs: json_.containsKey('genericXdsConfigs')
            ? (json_['genericXdsConfigs'] as core.List)
                .map((value) => GenericXdsConfig.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        node: json_.containsKey('node')
            ? Node.fromJson(
                json_['node'] as core.Map<core.String, core.dynamic>)
            : null,
        xdsConfig: json_.containsKey('xdsConfig')
            ? (json_['xdsConfig'] as core.List)
                .map((value) => PerXdsConfig.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );