SupportedValues.fromJson constructor

SupportedValues.fromJson(
  1. Map json_
)

Implementation

SupportedValues.fromJson(core.Map json_)
    : this(
        acceleratorTypes: json_.containsKey('acceleratorTypes')
            ? (json_['acceleratorTypes'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        machineTypes: json_.containsKey('machineTypes')
            ? (json_['machineTypes'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
      );