toJson method

Json toJson()

Implementation

Json toJson() {
  return {
    'name': name,
    'reason': reason,
    'stackTrace': stackTrace.map((e) => e.toJson()).toList(),
  };
}