envelope static method
Convenience envelope builder: zap/type/id/ts + fields.
Implementation
static Map<String, Object?> envelope(
String type,
String id,
String ts,
Map<String, Object?> fields,
) => <String, Object?>{
'zap': zapProtocolVersion,
'type': type,
'id': id,
'ts': ts,
...fields,
};