Image2Video.fromJson constructor
Image2Video.fromJson(
- Map<String, dynamic> json
)
Implementation
factory Image2Video.fromJson(Map<String, dynamic> json) {
return Image2Video(
apiKey: json['api_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'],
initImage: json['init_image'],
);
}