CreateTuningJobRequest.fromJson constructor

CreateTuningJobRequest.fromJson(
  1. Object? j
)

Implementation

factory CreateTuningJobRequest.fromJson(Object? j) {
  final json = j as Map<String, Object?>;
  return CreateTuningJobRequest(
    parent: switch (json['parent']) {
      null => '',
      Object $1 => decodeString($1),
    },
    tuningJob: switch (json['tuningJob']) {
      null => null,
      Object $1 => TuningJob.fromJson($1),
    },
  );
}