toJson method

Map<String, dynamic> toJson()

Serialises the class data to a JSON-compatible format.

Implementation

Map<String, dynamic> toJson() {
  return {
    'accessKey': accessKey,
    'clientId': clientId,
    'serverEnvironment': serverEnvironment.name,
    'shouldFetchThemeFromRemote': shouldFetchThemeFromRemote,
    'footer': footer.toJson(),
    'initialization': initialization.toJson(),
  };
}