/*
 * Orvanta API
 *
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 1.0.2
 * Contact: contact@orvanta.cloud
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

/// FlowNotePosition : Position of the note in the flow editor
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct FlowNotePosition {
    /// X coordinate
    #[serde(rename = "x")]
    pub x: f64,
    /// Y coordinate
    #[serde(rename = "y")]
    pub y: f64,
}

impl FlowNotePosition {
    /// Position of the note in the flow editor
    pub fn new(x: f64, y: f64) -> FlowNotePosition {
        FlowNotePosition {
            x,
            y,
        }
    }
}

