MachinePreferences.fromJson constructor

MachinePreferences.fromJson(
  1. Map json_
)

Implementation

MachinePreferences.fromJson(core.Map json_)
    : this(
        allowedMachineSeries: json_.containsKey('allowedMachineSeries')
            ? (json_['allowedMachineSeries'] as core.List)
                .map((value) => MachineSeries.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );