Skip to content

Commit

Permalink
fix(common): fix error encoding from String to Map
Browse files Browse the repository at this point in the history
Signed-off-by: Vincenzo Palazzo <[email protected]>
  • Loading branch information
vincenzopalazzo committed Aug 14, 2022
1 parent 4508355 commit adec0f3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/cln_common/lib/src/json_rpc/error.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import 'dart:convert';

import 'package:json_annotation/json_annotation.dart';

part 'error.g.dart';
Expand All @@ -24,5 +22,5 @@ class Error {

/// This function converts a generated class object back to
/// a JSON HashMap.
String toJson() => jsonEncode(_$ErrorToJson(this));
Map<String, dynamic> toJson() => _$ErrorToJson(this);
}

0 comments on commit adec0f3

Please sign in to comment.