toMethodName method
Implementation
MethodName toMethodName() {
switch (this) {
case 'PUT':
return MethodName.put;
case 'GET':
return MethodName.get;
case 'DELETE':
return MethodName.delete;
case 'HEAD':
return MethodName.head;
}
throw Exception('$this is not known in enum MethodName');
}