29 lines
906 B
C#
29 lines
906 B
C#
using System.Text.Json;
|
|
using System.Text.Json.Serialization;
|
|
|
|
namespace View_by_Distance.Shared.Models;
|
|
|
|
public class MappingFromFilter : Properties.IMappingFromFilter
|
|
{
|
|
|
|
public bool? IsFocusModel { init; get; }
|
|
public bool? IsFocusRelativePath { init; get; }
|
|
public bool? IsIgnoreRelativePath { init; get; }
|
|
public bool? InSkipCollection { init; get; }
|
|
|
|
[JsonConstructor]
|
|
public MappingFromFilter(bool? isFocusModel, bool? isFocusRelativePath, bool? isIgnoreRelativePath, bool? inSkipCollection)
|
|
{
|
|
IsFocusModel = isFocusModel;
|
|
IsFocusRelativePath = isFocusRelativePath;
|
|
IsIgnoreRelativePath = isIgnoreRelativePath;
|
|
InSkipCollection = inSkipCollection;
|
|
}
|
|
|
|
public override string ToString()
|
|
{
|
|
string result = JsonSerializer.Serialize(this, new JsonSerializerOptions() { WriteIndented = true });
|
|
return result;
|
|
}
|
|
|
|
} |