SchedulingNodeAffinity.fromJson constructor

SchedulingNodeAffinity.fromJson(
  1. Map json_
)

Implementation

SchedulingNodeAffinity.fromJson(core.Map json_)
    : this(
        key: json_.containsKey('key') ? json_['key'] as core.String : null,
        operator: json_.containsKey('operator')
            ? json_['operator'] as core.String
            : null,
        values: json_.containsKey('values')
            ? (json_['values'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
      );