decode method

  1. @override
WorldOperationMode decode(
  1. dynamic value
)
override

Implementation

@override
WorldOperationMode decode(dynamic value) {
  switch (value) {
    case 'figures':
      return WorldOperationMode.figures;
    case 'boards':
      return WorldOperationMode.boards;
    default:
      throw MapperException.unknownEnumValue(value);
  }
}