MapperException.unsupportedMethod constructor

MapperException.unsupportedMethod(
  1. MapperMethod method,
  2. Type type
)

Exception when a method is called that was not specified for generation.

Implementation

factory MapperException.unsupportedMethod(MapperMethod method, Type type) {
  return MapperException._('Unsupported operation "${method.name}" on type '
      '$type: You can specify the supported operations for a type on its '
      'annotation by using the GenerateMethods flag.');
}