InsanichessGameSettings.fromJson constructor

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

Constructs new InsanichessGameSettings object from json.

Implementation

InsanichessGameSettings.fromJson(Map<String, dynamic> json)
    : allowUndo = json[InsanichessGameSettingsJsonKey.allowUndo],
      alwaysPromoteToQueen =
          json[InsanichessGameSettingsJsonKey.alwaysPromoteToQueen],
      autoZoomOutOnMove = autoZoomOutOnMoveBehaviourFromJson(
          json[InsanichessGameSettingsJsonKey.autoZoomOutOnMove]);