|
MediaWiki master
|
Classes implementing this interface support round-trip JSON serialization/deserialization using the JsonDeserializer utility. More...
Inherits JsonSerializable.

Static Public Member Functions | |
| static | newFromJsonArray (JsonDeserializer $deserializer, array $json) |
| Creates a new instance of the class and initialized it from the $json array. | |
Classes implementing this interface support round-trip JSON serialization/deserialization using the JsonDeserializer utility.
The resulting JSON must be annotated with class information for deserialization to work. Use JsonDeserializableTrait in implementing classes which annotates the JSON automatically.
Definition at line 24 of file JsonDeserializable.php.
|
static |
Creates a new instance of the class and initialized it from the $json array.
| JsonDeserializer | $deserializer | an instance of JsonDeserializer to use for nested properties if they need special care. |
| array | $json |