android-components / mozilla.components.service.fretboard / JSONExperimentParser


class JSONExperimentParser (source)

Default JSON parsing implementation


Name Summary
<init> JSONExperimentParser()
Default JSON parsing implementation


Name Summary
fromJson fun fromJson(jsonObject: <ERROR CLASS>): Experiment
Creates an experiment from its json representation
toJson fun toJson(experiment: Experiment): <ERROR CLASS>
Converts the specified experiment to json

Extension Functions

Name Summary
loadResourceAsString fun Any.loadResourceAsString(path: String): String
Loads a file from the resources folder and returns its content as a string object.