AutoMLConfig.fromJson constructor

AutoMLConfig.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory AutoMLConfig.fromJson(Map<String, dynamic> json) {
  return AutoMLConfig(
    metricName: json['metricName'] as String?,
    recipeList: (json['recipeList'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
  );
}