toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (context != null) 'context': context!,
      if (payload != null) 'payload': payload!,
      if (stackTrace != null) 'stackTrace': stackTrace!,
    };