ActiveLearningConfig.fromJson constructor

ActiveLearningConfig.fromJson(
  1. Object? j
)

Implementation

factory ActiveLearningConfig.fromJson(Object? j) {
  final json = j as Map<String, Object?>;
  return ActiveLearningConfig(
    maxDataItemCount: switch (json['maxDataItemCount']) {
      null => null,
      Object $1 => decodeInt64($1),
    },
    maxDataItemPercentage: switch (json['maxDataItemPercentage']) {
      null => null,
      Object $1 => decodeInt($1),
    },
    sampleConfig: switch (json['sampleConfig']) {
      null => null,
      Object $1 => SampleConfig.fromJson($1),
    },
    trainingConfig: switch (json['trainingConfig']) {
      null => null,
      Object $1 => TrainingConfig.fromJson($1),
    },
  );
}