toJson method

Map<String, dynamic> toJson()

Converts this object to json representation.

Implementation

Map<String, dynamic> toJson() {
  return <String, dynamic>{
    InsanichessGameSettingsJsonKey.allowUndo: allowUndo,
    InsanichessGameSettingsJsonKey.alwaysPromoteToQueen: alwaysPromoteToQueen,
    InsanichessGameSettingsJsonKey.autoZoomOutOnMove:
        autoZoomOutOnMove.toJson(),
  };
}