-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathExtensionModel.cs
More file actions
34 lines (32 loc) · 1.16 KB
/
Copy pathExtensionModel.cs
File metadata and controls
34 lines (32 loc) · 1.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
using Newtonsoft.Json;
using System.Collections.Generic;
namespace Contentstack.Management.Core.Models
{
[JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)]
public class ExtensionModel
{
[JsonProperty(propertyName: "title")]
public string Title { get; set; }
[JsonProperty(propertyName: "data_type")]
public string DataType { get; set; }
[JsonProperty(propertyName: "tags")]
public List<string> Tags { get; set; }
[JsonProperty(propertyName: "src")]
public string Src { get; set; }
[JsonProperty(propertyName: "srcdoc")]
public string Srcdoc { get; set; }
[JsonProperty(propertyName: "type")]
public string Type { get; set; }
[JsonProperty(propertyName: "config")]
public string Config { get; set; }
[JsonProperty(propertyName: "multiple")]
public bool Multiple { get; set; }
[JsonProperty(propertyName: "scope")]
public ExtensionScope Scope { get; set; }
}
public class ExtensionScope
{
[JsonProperty(propertyName: "content_types")]
public List<string> ContentTypes { get; set; }
}
}