Interface IEbicsJsonConverter
Interface for json-conversion that can be implemented by a concrete EbicsElement (e.g. EbicsContact).
Namespace: Subsembly.EBICS
Assembly: Subsembly.EBICS.Core.dll
Syntax
public interface IEbicsJsonConverter
Methods
FromJson(JsonObject)
(Re-)Initializes a given EbicsElement from its json representation.
Declaration
void FromJson(JsonObject jsonObject)
Parameters
Type | Name | Description |
---|---|---|
JsonObject | jsonObject | The json object holding the json representation of the EbicsElement. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | The parameter JsonObject is/was |
System.ArgumentException | The json content is not compatible with the given EbicsElement. |
ToJson(JsonObject)
Converts a given EbicsElement to its json representation.
Declaration
JsonObject ToJson(JsonObject jsonObject)
Parameters
Type | Name | Description |
---|---|---|
JsonObject | jsonObject | The caller can specify a jsonObject that will be extended with the EbicsElement's properties.
If |
Returns
Type | Description |
---|---|
JsonObject | The json representation of the given EbicsElement. This is either the jsonObject that was supplied
by the caller or the fresh json object that was created instead.
Never returns |