IJsonBinder Interface

Summary

IJsonBinder is a way to bind complex objects, with nested keys.
graph BT Type["IJsonBinder"] class Type type-node Implementing0["JsonBinder"]-.->Type click Implementing0 "/api/Rocket.Surgery.Binding/JsonBinder"

Syntax

public interface IJsonBinder

Attributes

Type Description
NullableContextAttribute

Methods

Name Value Summary
Bind(Type, IEnumerable<KeyValuePair<string, string>>, JsonSerializer) object
Bind the values to the source type
Bind(Type, IEnumerable<KeyValuePair<string, string>>) object
Bind the values to the source type
Bind<T>(IEnumerable<KeyValuePair<string, string>>, JsonSerializer) T
Bind the values to the source type
Bind<T>(IEnumerable<KeyValuePair<string, string>>) T
Bind the values to the source type
From<T>(T, JsonSerializer) IEnumerable<KeyValuePair<string, string>>
Get a list of key value pairs for the given source object
From<T>(T) IEnumerable<KeyValuePair<string, string>>
Get a list of key value pairs for the given source object
GetValues<T>(T, JsonSerializer) IEnumerable<KeyValuePair<string, JValue>>
Get a list of Newtonsoft.Json.Linq.JValue's for a given object
GetValues<T>(T) IEnumerable<KeyValuePair<string, JValue>>
Get a list of Newtonsoft.Json.Linq.JValue's for a given object
Parse(IEnumerable<KeyValuePair<string, string>>) JObject
Parses the given key value pairs into a Newtonsoft.Json.Linq.JObject.
Populate<T>(T, IEnumerable<KeyValuePair<string, string>>, JsonSerializer) T
Populate the values to the source type
Populate<T>(T, IEnumerable<KeyValuePair<string, string>>) T
Populate the values to the source type

Extension Methods

Name Value Summary
Bind(Type, IConfiguration, JsonSerializer) object
Bind the values to the given configuration
Bind(Type, IConfiguration) object
Bind the values to the given configuration
Bind<T>(IConfiguration, JsonSerializer) T
Bind the values to the given configuration
Bind<T>(IConfiguration) T
Bind the values to the given configuration
Populate<T>(T, IConfiguration, JsonSerializer) T
Populate the values from the given configuration object
Populate<T>(T, IConfiguration) T
Populate the values from the given configuration object
SetBackingValue<IJsonBinder, TV>(Expression<Func<IJsonBinder, TV>>, TV) T
Sets the backing value.
With<IJsonBinder, TKey, TField>(Dictionary<TKey, TField>, IDictionary<TKey, TField>) TBuilder
Adds the specified dictionary to the provided dictionary.