toMap method
Implementation
Map<String, dynamic> toMap() => {
if (auth != null) "token": auth!.toMap(),
"path": path.toMap(),
"agent": agent.index,
"cause": cause.index,
"type": runtimeType,
"create": context.requestTime.millisecondsSinceEpoch
};