toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
      'key': key,
      'prompt': prompt,
      'init_image': initImage,
      'mask_image': maskImage,
      'model_id': modelId,
      'negative_prompt': negativePrompt,
      'width': width,
      'height': height,
      'samples': samples,
      'num_inference_steps': numInferenceSteps,
      'safety_checker': safetyChecker,
      'seed': seed,
      'enhance_prompt': enhancePrompt,
      'guidance_scale': guidanceScale,
      'multi_lingual': multiLingual,
      'panorama': panorama,
      'self_attention': selfAttention,
      'upscale': upscale,
      'lora_model': loraModel,
      'lora_strength': loraStrength,
      'scheduler': scheduler,
      'clip_skip': clipSkip,
      'controlnet_model': controlnetModel,
      'controlnet_type': controlnetType,
      'strength': strength,
    };