response method

Map response(
  1. {int to = 1,
  2. int result = 1,
  3. int id = 2}
)

Implementation

Map response({
  int to = 1,
  int result = 1,
  int id = 2,
}) =>
    {
      'cmd': 'response',
      'to': to,
      'result': result,
      'id': id,
    };