toMap method

  1. @override
Map<String, dynamic> toMap()
override

Serialize to map for event storage

Implementation

@override
Map<String, dynamic> toMap() => {
      'type': 'p2ms',
      'publicKeys': publicKeys,
      'threshold': threshold,
      'amount': amount.toString(),
      if (label != null) 'label': label,
    };