ErrorEvent.fromJson constructor

ErrorEvent.fromJson(
  1. Map _json
)

Implementation

ErrorEvent.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,
      );