Text2Video.fromJson constructor

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

Implementation

factory Text2Video.fromJson(Map<String, dynamic> json) {
  return Text2Video(
    key: json['key'],
    webhook: json['webhook'],
    trackId: json['track_id'],
    modelId: json['model_id'],
    prompt: json['prompt'],
    negativePrompt: json['negative_prompt'],
    seed: json['seed'],
    width: json['width'],
    height: json['height'],
    numFrames: json['num_frames'],
    numInferenceSteps: json['num_inference_steps'],
    guidanceScale: (json['guidance_scale'] as num?)?.toDouble(),
    fps: json['fps'],
  );
}