ReportedErrorEvent.fromJson constructor

ReportedErrorEvent.fromJson(
  1. Map json_
)

Implementation

ReportedErrorEvent.fromJson(core.Map json_)
    : this(
        context: json_.containsKey('context')
            ? ErrorContext.fromJson(
                json_['context'] as core.Map<core.String, core.dynamic>)
            : null,
        eventTime: json_.containsKey('eventTime')
            ? json_['eventTime'] as core.String
            : null,
        message: json_.containsKey('message')
            ? json_['message'] as core.String
            : null,
        serviceContext: json_.containsKey('serviceContext')
            ? ServiceContext.fromJson(json_['serviceContext']
                as core.Map<core.String, core.dynamic>)
            : null,
      );