toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
      'kind': kind.name,
      'message': message,
      if (target.isNotEmpty) 'target': target,
      if (phase != null) 'phase': phase,
    };