Class EntityObjectJsonConverter.JsonSchemaProperty
- Namespace
- TimeCockpit.Data.JsonConverters
- Assembly
- TimeCockpit.Data.dll
class describing a property in the json schema
public class JsonSchemaProperty
- Inheritance
-
ObjectEntityObjectJsonConverter.JsonSchemaProperty
- Inherited Members
-
Object.ToString()Object.Equals(Object)Object.Equals(Object, Object)Object.ReferenceEquals(Object, Object)Object.GetHashCode()Object.GetType()Object.MemberwiseClone()
Constructors
JsonSchemaProperty(String, Int32, EntityObjectJsonConverter.ToJson, EntityObjectJsonConverter.FromJson)
Initializes a new instance of the JsonSchemaProperty class.
public JsonSchemaProperty(string name, int contentMapIndex, EntityObjectJsonConverter.ToJson toJson, EntityObjectJsonConverter.FromJson fromJson)
Parameters
nameStringname of the property.
contentMapIndexInt32index into the content map
toJsonEntityObjectJsonConverter.ToJsonfunctor converting to json compatible object.
fromJsonEntityObjectJsonConverter.FromJsonfunctor converting from json.
Properties
ContentMapIndex
Gets the index in the content map of the entity object.
public int ContentMapIndex { get; }
Property Value
- Int32
FromJson
Gets a conversion functor that converts to an object from an json object.
public EntityObjectJsonConverter.FromJson FromJson { get; }
Property Value
Name
Gets the (full) name of the property.
public string Name { get; }
Property Value
- String
ToJson
Gets a conversion functor that converts an object to a json compatible object.
public EntityObjectJsonConverter.ToJson ToJson { get; }