encode method

Object encode()

Implementation

Object encode() {
  return <Object?>[
    path,
    method.index,
    headers,
    body,
  ];
}