public JsonField(FieldInfo field, JsonPropertyAttribute attribute) { Field = field; Name = !string.IsNullOrWhiteSpace(attribute.Name) ? attribute.Name : field.Name; }
public JsonField(PropertyInfo property, JsonPropertyAttribute attribute) { Property = property; Name = !string.IsNullOrWhiteSpace(attribute.Name) ? attribute.Name : property.Name; }