HPOConfig.fromJson constructor

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

Implementation

factory HPOConfig.fromJson(Map<String, dynamic> json) {
  return HPOConfig(
    algorithmHyperParameterRanges:
        json['algorithmHyperParameterRanges'] != null
            ? HyperParameterRanges.fromJson(
                json['algorithmHyperParameterRanges'] as Map<String, dynamic>)
            : null,
    hpoObjective: json['hpoObjective'] != null
        ? HPOObjective.fromJson(json['hpoObjective'] as Map<String, dynamic>)
        : null,
    hpoResourceConfig: json['hpoResourceConfig'] != null
        ? HPOResourceConfig.fromJson(
            json['hpoResourceConfig'] as Map<String, dynamic>)
        : null,
  );
}