/// <summary> /// Create service model from api model /// </summary> public StructureFieldModel ToServiceModel() { return(new StructureFieldModel { ArrayDimensions = ArrayDimensions?.ToList(), DataTypeId = DataTypeId, Description = Description?.ToServiceModel(), IsOptional = IsOptional, MaxStringLength = MaxStringLength, Name = Name, ValueRank = ValueRank }); }
/// <summary> /// Create service model from api model /// </summary> public FieldMetaDataModel ToServiceModel() { return(new FieldMetaDataModel { Description = Description?.ToServiceModel(), ArrayDimensions = ArrayDimensions?.ToList(), BuiltInType = BuiltInType, DataSetFieldId = DataSetFieldId, DataTypeId = DataTypeId, FieldFlags = FieldFlags, MaxStringLength = MaxStringLength, Name = Name, Properties = Properties? .ToDictionary(k => k.Key, v => v.Value), ValueRank = ValueRank }); }