encode method

  1. @override
dynamic encode(
  1. WorldOperationMode self
)
override

Implementation

@override
dynamic encode(WorldOperationMode self) {
  switch (self) {
    case WorldOperationMode.figures:
      return 'figures';
    case WorldOperationMode.boards:
      return 'boards';
  }
}