InstanceFlexibilityPolicy.fromJson constructor

InstanceFlexibilityPolicy.fromJson(
  1. Map json_
)

Implementation

InstanceFlexibilityPolicy.fromJson(core.Map json_)
    : this(
        instanceSelectionList: json_.containsKey('instanceSelectionList')
            ? (json_['instanceSelectionList'] as core.List)
                .map((value) => InstanceSelection.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        instanceSelectionResults:
            json_.containsKey('instanceSelectionResults')
                ? (json_['instanceSelectionResults'] as core.List)
                    .map((value) => InstanceSelectionResult.fromJson(
                        value as core.Map<core.String, core.dynamic>))
                    .toList()
                : null,
      );