SentryMessage.fromJson constructor

SentryMessage.fromJson(
  1. Map<String, dynamic> data
)

Deserializes a SentryMessage from JSON Map.

Implementation

factory SentryMessage.fromJson(Map<String, dynamic> data) {
  final json = AccessAwareMap(data);
  return SentryMessage(
    json['formatted'],
    template: json['message'],
    params: json['params'],
    unknown: json.notAccessed(),
  );
}