Node.fromJson constructor

Node.fromJson(
  1. Map json_
)

Implementation

Node.fromJson(core.Map json_)
    : this(
        id: json_.containsKey('id') ? json_['id'] as core.String : null,
        ip: json_.containsKey('ip') ? json_['ip'] as core.String : null,
        state:
            json_.containsKey('state') ? json_['state'] as core.String : null,
        zoneId: json_.containsKey('zoneId')
            ? json_['zoneId'] as core.String
            : null,
      );