Text2VideoUltra.fromJson constructor

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

Implementation

factory Text2VideoUltra.fromJson(Map<String, dynamic> json) {
  return Text2VideoUltra(
    key: json['key'],
    webhook: json['webhook'],
    trackId: json['track_id'],
    prompt: json['prompt'],
    negativePrompt: json['negative_prompt'],
    seed: json['seed'],
    resolution: json['resolution'],
    numFrames: json['num_frames'],
    numInferenceSteps: json['num_inference_steps'],
    guidanceScale: (json['guidance_scale'] as num?)?.toDouble(),
    fps: json['fps'],
    portrait: json['portrait'],
    sampleShift: json['sample_shift'],
  );
}