toErrorResponseData method

Map<String, dynamic> toErrorResponseData()

Implementation

Map<String, dynamic> toErrorResponseData() {
  return {
    'type': type,
    'from': from,
    'error': error,
  };
}