EndpointConfig.fromJson constructor

EndpointConfig.fromJson(
  1. Map json_
)

Implementation

EndpointConfig.fromJson(core.Map json_)
    : this(
        enableHttpPortAccess: json_.containsKey('enableHttpPortAccess')
            ? json_['enableHttpPortAccess'] as core.bool
            : null,
        httpPorts: json_.containsKey('httpPorts')
            ? (json_['httpPorts'] as core.Map<core.String, core.dynamic>).map(
                (key, value) => core.MapEntry(
                  key,
                  value as core.String,
                ),
              )
            : null,
      );