Node.fromJson constructor

Node.fromJson(
  1. Map json_
)

Implementation

Node.fromJson(core.Map json_)
    : this(
        host: json_.containsKey('host') ? json_['host'] as core.String : null,
        memcacheFullVersion: json_.containsKey('memcacheFullVersion')
            ? json_['memcacheFullVersion'] as core.String
            : null,
        memcacheVersion: json_.containsKey('memcacheVersion')
            ? json_['memcacheVersion'] as core.String
            : null,
        nodeId: json_.containsKey('nodeId')
            ? json_['nodeId'] as core.String
            : null,
        parameters: json_.containsKey('parameters')
            ? MemcacheParameters.fromJson(
                json_['parameters'] as core.Map<core.String, core.dynamic>)
            : null,
        port: json_.containsKey('port') ? json_['port'] as core.int : null,
        state:
            json_.containsKey('state') ? json_['state'] as core.String : null,
        zone: json_.containsKey('zone') ? json_['zone'] as core.String : null,
      );