toJson method

  1. @override
Map<String, Object?> toJson()

Converts this object to json representation.

Implementation

@override
Map<String, Object?> toJson() {
  return <String, dynamic>{
    InsanichessSettingsJsonKey.otb: otb.toJson(),
    InsanichessSettingsJsonKey.live: live.toJson(),
    InsanichessSettingsJsonKey.showZoomOutButtonOnLeft:
        showZoomOutButtonOnLeft,
    InsanichessSettingsJsonKey.showLegalMoves: showLegalMoves,
  };
}