toJson method
The evidence projection of this operation.
Implementation
Map<String, Object?> toJson() => {
'id': id,
'kind': kind.name,
'command': command.toJson(),
if (endpoint != null) 'endpoint': endpoint!.toJson(),
if (readiness != null) 'readiness': readiness!.toJson(),
};