fromJSON

fun fromJSON(json: JSONObject?, warnings: WarningLogger? = null): Price?

Creates an Price from its JSON representation. If the price can't be parsed, a warning will be logged with warnings.