Interface IEbicsJsonConverter

Namespace
Subsembly.EBICS
Assembly
Subsembly.EBICS.Core.dll

Interface for json-conversion that can be implemented by a concrete EbicsElement (e.g. EbicsContact).

public interface IEbicsJsonConverter
Extension Methods

Methods

FromJson(JsonObject)

(Re-)Initializes a given EbicsElement from its json representation.

void FromJson(JsonObject jsonObject)

Parameters

jsonObject JsonObject

The json object holding the json representation of the EbicsElement.

Exceptions

ArgumentNullException

The parameter JsonObject is/was null.

ArgumentException

The json content is not compatible with the given EbicsElement.

ToJson(JsonObject)

Converts a given EbicsElement to its json representation.

JsonObject ToJson(JsonObject jsonObject)

Parameters

jsonObject JsonObject

The caller can specify a jsonObject that will be extended with the EbicsElement's properties. If null was specified, a fresh json object will be created.

Returns

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 null.