internal API.Models.GfyParameters CreateModel() { return(new API.Models.GfyParameters() { Captions = Captions?.Select(cap => (cap == null) ? null : new API.Models.Caption() { Duration = cap.Duration, FontHeight = cap.FontHeight, RelativeFontHeight = cap.RelativeFontHeight, RelativeX = cap.RelativeXPosition, RelativeY = cap.RelativeYPosition, StartSeconds = cap.StartSeconds, Text = cap.Text, X = cap.XPosition, Y = cap.YPosition, }), Crop = (Crop == null) ? null : new API.Models.Crop() { H = Crop.Height, W = Crop.Width, X = Crop.XPosition, Y = Crop.YPosition }, Cut = (Cut == null) ? null : new API.Models.Cut() { Duration = Cut.Duration, Start = Cut.Start }, Description = Description, FetchHours = FetchHours, FetchMinutes = FetchMinutes, FetchSeconds = FetchSeconds, FetchUrl = FetchUrl, NoMd5 = NoMd5, Nsfw = Nsfw, Private = Private, Tags = Tags, Title = Title }); }