NodePool.fromJson constructor

NodePool.fromJson(
  1. Map json_
)

Implementation

NodePool.fromJson(core.Map json_)
    : this(
        id: json_.containsKey('id') ? json_['id'] as core.String : null,
        instanceNames: json_.containsKey('instanceNames')
            ? (json_['instanceNames'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        repairAction: json_.containsKey('repairAction')
            ? json_['repairAction'] as core.String
            : null,
      );