// ========================================================================== // Squidex Headless CMS // ========================================================================== // Copyright (c) Squidex UG (haftungsbeschränkt) // All rights reserved. Licensed under the MIT license. // ========================================================================== using Newtonsoft.Json; using Squidex.Infrastructure.Reflection; namespace Squidex.Domain.Apps.Core.Apps.Json { public class JsonAppClient { [JsonProperty] public string Name { get; set; } [JsonProperty] public string Secret { get; set; } [JsonProperty] public string Role { get; set; } public JsonAppClient() { } public JsonAppClient(AppClient client) { SimpleMapper.Map(client, this); } public AppClient ToClient() { return new AppClient(Name, Secret, Role); } } }