helloHandle method

MWBResponse helloHandle(
  1. MWBParams params
)

hello Handle

Implementation

MWBResponse helloHandle(MWBParams params) {
  final message = mwbConvert<String>(params["message"]) ?? "";
  if (message.isEmpty) {
    throw MWBException('message required.');
  }
  return {"message": message};
}