EndpointsConfigDump.fromJson constructor

EndpointsConfigDump.fromJson(
  1. Map json_
)

Implementation

EndpointsConfigDump.fromJson(core.Map json_)
    : this(
        dynamicEndpointConfigs: json_.containsKey('dynamicEndpointConfigs')
            ? (json_['dynamicEndpointConfigs'] as core.List)
                .map((value) => DynamicEndpointConfig.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        staticEndpointConfigs: json_.containsKey('staticEndpointConfigs')
            ? (json_['staticEndpointConfigs'] as core.List)
                .map((value) => StaticEndpointConfig.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );