fromJSON

fun fromJSON(json: Any?, warnings: WarningLogger? = null): Subject?

Parses a Subject from its RWPM JSON representation.

A subject can be parsed from a single string, or a full-fledged object. If the subject can't be parsed, a warning will be logged with warnings.