toJson method

Map<String, dynamic> toJson()

Converts the SegwitAddress instance to a JSON map.

Implementation

Map<String, dynamic> toJson() {
  return {
    'HRP': hrp,
    'VERSION': version,
  };
}