InsanichessSettings.fromJson constructor

InsanichessSettings.fromJson(
  1. Map<String, dynamic> json
)

Creates new InsanichessSettings from json representation.

Implementation

InsanichessSettings.fromJson(Map<String, dynamic> json)
    : otb = InsanichessOtbSettings.fromJson(
          json[InsanichessSettingsJsonKey.otb]),
      live = InsanichessLiveGameSettings.fromJson(
          json[InsanichessSettingsJsonKey.live]),
      showZoomOutButtonOnLeft =
          json[InsanichessSettingsJsonKey.showZoomOutButtonOnLeft],
      showLegalMoves = json[InsanichessSettingsJsonKey.showLegalMoves];