CheckTrialEarlyStoppingStateResponse.fromJson constructor

CheckTrialEarlyStoppingStateResponse.fromJson(
  1. Object? j
)

Implementation

factory CheckTrialEarlyStoppingStateResponse.fromJson(Object? j) {
  final json = j as Map<String, Object?>;
  return CheckTrialEarlyStoppingStateResponse(
    shouldStop: switch (json['shouldStop']) {
      null => false,
      Object $1 => decodeBool($1),
    },
  );
}