NodeConfig.fromJson constructor

NodeConfig.fromJson(
  1. Map json_
)

Implementation

NodeConfig.fromJson(core.Map json_)
    : this(
        cpuCount: json_.containsKey('cpuCount')
            ? json_['cpuCount'] as core.int
            : null,
        memorySizeMb: json_.containsKey('memorySizeMb')
            ? json_['memorySizeMb'] as core.int
            : null,
      );