chore(server): auto sort open api spec (#3500)

* chore: recursively sort api keys

* chore: open api
This commit is contained in:
Jason Rasmussen 2023-08-01 12:49:18 -04:00 committed by GitHub
parent 690b87e375
commit 310fab526d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
190 changed files with 6172 additions and 6168 deletions

View file

@ -14,72 +14,72 @@ class SystemConfigFFmpegDto {
/// Returns a new [SystemConfigFFmpegDto] instance.
SystemConfigFFmpegDto({
required this.crf,
required this.threads,
required this.targetVideoCodec,
required this.targetAudioCodec,
required this.transcode,
required this.preset,
required this.targetResolution,
required this.maxBitrate,
required this.preset,
required this.targetAudioCodec,
required this.targetResolution,
required this.targetVideoCodec,
required this.threads,
required this.transcode,
required this.twoPass,
});
int crf;
int threads;
VideoCodec targetVideoCodec;
AudioCodec targetAudioCodec;
TranscodePolicy transcode;
String maxBitrate;
String preset;
AudioCodec targetAudioCodec;
String targetResolution;
String maxBitrate;
VideoCodec targetVideoCodec;
int threads;
TranscodePolicy transcode;
bool twoPass;
@override
bool operator ==(Object other) => identical(this, other) || other is SystemConfigFFmpegDto &&
other.crf == crf &&
other.threads == threads &&
other.targetVideoCodec == targetVideoCodec &&
other.targetAudioCodec == targetAudioCodec &&
other.transcode == transcode &&
other.preset == preset &&
other.targetResolution == targetResolution &&
other.maxBitrate == maxBitrate &&
other.preset == preset &&
other.targetAudioCodec == targetAudioCodec &&
other.targetResolution == targetResolution &&
other.targetVideoCodec == targetVideoCodec &&
other.threads == threads &&
other.transcode == transcode &&
other.twoPass == twoPass;
@override
int get hashCode =>
// ignore: unnecessary_parenthesis
(crf.hashCode) +
(threads.hashCode) +
(targetVideoCodec.hashCode) +
(targetAudioCodec.hashCode) +
(transcode.hashCode) +
(preset.hashCode) +
(targetResolution.hashCode) +
(maxBitrate.hashCode) +
(preset.hashCode) +
(targetAudioCodec.hashCode) +
(targetResolution.hashCode) +
(targetVideoCodec.hashCode) +
(threads.hashCode) +
(transcode.hashCode) +
(twoPass.hashCode);
@override
String toString() => 'SystemConfigFFmpegDto[crf=$crf, threads=$threads, targetVideoCodec=$targetVideoCodec, targetAudioCodec=$targetAudioCodec, transcode=$transcode, preset=$preset, targetResolution=$targetResolution, maxBitrate=$maxBitrate, twoPass=$twoPass]';
String toString() => 'SystemConfigFFmpegDto[crf=$crf, maxBitrate=$maxBitrate, preset=$preset, targetAudioCodec=$targetAudioCodec, targetResolution=$targetResolution, targetVideoCodec=$targetVideoCodec, threads=$threads, transcode=$transcode, twoPass=$twoPass]';
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
json[r'crf'] = this.crf;
json[r'threads'] = this.threads;
json[r'targetVideoCodec'] = this.targetVideoCodec;
json[r'targetAudioCodec'] = this.targetAudioCodec;
json[r'transcode'] = this.transcode;
json[r'preset'] = this.preset;
json[r'targetResolution'] = this.targetResolution;
json[r'maxBitrate'] = this.maxBitrate;
json[r'preset'] = this.preset;
json[r'targetAudioCodec'] = this.targetAudioCodec;
json[r'targetResolution'] = this.targetResolution;
json[r'targetVideoCodec'] = this.targetVideoCodec;
json[r'threads'] = this.threads;
json[r'transcode'] = this.transcode;
json[r'twoPass'] = this.twoPass;
return json;
}
@ -93,13 +93,13 @@ class SystemConfigFFmpegDto {
return SystemConfigFFmpegDto(
crf: mapValueOfType<int>(json, r'crf')!,
threads: mapValueOfType<int>(json, r'threads')!,
targetVideoCodec: VideoCodec.fromJson(json[r'targetVideoCodec'])!,
targetAudioCodec: AudioCodec.fromJson(json[r'targetAudioCodec'])!,
transcode: TranscodePolicy.fromJson(json[r'transcode'])!,
preset: mapValueOfType<String>(json, r'preset')!,
targetResolution: mapValueOfType<String>(json, r'targetResolution')!,
maxBitrate: mapValueOfType<String>(json, r'maxBitrate')!,
preset: mapValueOfType<String>(json, r'preset')!,
targetAudioCodec: AudioCodec.fromJson(json[r'targetAudioCodec'])!,
targetResolution: mapValueOfType<String>(json, r'targetResolution')!,
targetVideoCodec: VideoCodec.fromJson(json[r'targetVideoCodec'])!,
threads: mapValueOfType<int>(json, r'threads')!,
transcode: TranscodePolicy.fromJson(json[r'transcode'])!,
twoPass: mapValueOfType<bool>(json, r'twoPass')!,
);
}
@ -149,13 +149,13 @@ class SystemConfigFFmpegDto {
/// The list of required keys that must be present in a JSON.
static const requiredKeys = <String>{
'crf',
'threads',
'targetVideoCodec',
'targetAudioCodec',
'transcode',
'preset',
'targetResolution',
'maxBitrate',
'preset',
'targetAudioCodec',
'targetResolution',
'targetVideoCodec',
'threads',
'transcode',
'twoPass',
};
}