toJson method

Map<String, Object?> toJson()

Encodes this value as a JSON object.

Implementation

Map<String, Object?> toJson() => <String, Object?>{
  'sequence': sequence,
  'at': at,
  'phase': phase.toJson(),
  'source': source.toJson(),
  if (operation != null) 'operation': operation!,
  'payload': _wireJsonObject(payload, r'$.payload'),
  if (reason != null) 'reason': reason!,
};