PythonSettings.fromJson constructor

PythonSettings.fromJson(
  1. Object? j
)

Implementation

factory PythonSettings.fromJson(Object? j) {
  final json = j as Map<String, Object?>;
  return PythonSettings(
    common: switch (json['common']) {
      null => null,
      Object $1 => CommonLanguageSettings.fromJson($1),
    },
    experimentalFeatures: switch (json['experimentalFeatures']) {
      null => null,
      Object $1 => PythonSettings_ExperimentalFeatures.fromJson($1),
    },
  );
}