toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  Map<String, dynamic> jsonObject = Map<String, dynamic>();
  if (appKey != null) jsonObject.putIfAbsent("appkey", () => appKey);
  if (scene != null) jsonObject.putIfAbsent("scene", () => scene);
  if (language != null) jsonObject.putIfAbsent("language", () => language);
  if (fontSize != null) jsonObject.putIfAbsent("fontSize", () => fontSize);
  if (hideErrorCode != null)
    jsonObject.putIfAbsent("hideErrorCode", () => hideErrorCode);
  if (upLang != null) jsonObject.putIfAbsent("upLang", () => upLang);
  if (test != null) jsonObject.putIfAbsent("test", () => test);

  return jsonObject;
}