LinuxNodeConfig.fromJson constructor

LinuxNodeConfig.fromJson(
  1. Map json_
)

Implementation

LinuxNodeConfig.fromJson(core.Map json_)
    : this(
        cgroupMode: json_.containsKey('cgroupMode')
            ? json_['cgroupMode'] as core.String
            : null,
        hugepages: json_.containsKey('hugepages')
            ? HugepagesConfig.fromJson(
                json_['hugepages'] as core.Map<core.String, core.dynamic>)
            : null,
        sysctls: json_.containsKey('sysctls')
            ? (json_['sysctls'] as core.Map<core.String, core.dynamic>).map(
                (key, value) => core.MapEntry(
                  key,
                  value as core.String,
                ),
              )
            : null,
      );