toJson method

Map<String, dynamic> toJson()

Returns a JSON view used by the snapshot/dashboard.

Implementation

Map<String, dynamic> toJson() => <String, dynamic>{
  'event': name,
  'at': at.toIso8601String(),
  if (message != null) 'message': message,
};