toJson method

int toJson()

Returns json representation of AutoZoomOutOnMoveBehaviour.

Implementation

int toJson() {
  switch (this) {
    case AutoZoomOutOnMoveBehaviour.always:
      return 3;
    case AutoZoomOutOnMoveBehaviour.never:
      return 0;
    case AutoZoomOutOnMoveBehaviour.onMyMove:
      return 1;
    case AutoZoomOutOnMoveBehaviour.onOpponentMove:
      return 2;
  }
}