internal static Kit FromModel(Model.Kit kit) => new Kit { Identifier = ModuleIdentifier.FromModel(kit.Schema.Identifier), Containers = { kit.Data.CreateSnapshot().Segments.Select(FieldContainerData.FromModel) }, DefaultKitNumber = kit.DefaultKitNumber };
internal static ModuleAudio FromModel(Model.Audio.ModuleAudio audio) => new ModuleAudio { Identifier = ModuleIdentifier.FromModel(audio.Schema.Identifier), Format = AudioFormat.FromModel(audio.Format), DurationPerInstrument = Duration.FromTimeSpan(audio.DurationPerInstrument), InstrumentCaptures = { audio.Captures.Select(InstrumentAudio.FromModel) } };
internal static Module FromModel(Model.Module module) => new Module { Identifier = ModuleIdentifier.FromModel(module.Schema.Identifier), Containers = { module.Data.CreateSnapshot().Segments.Select(FieldContainerData.FromModel) } };