toMap method

Map<String, dynamic> toMap()

Implementation

Map<String, dynamic> toMap() => {
      "expiration": expiration,
      "pubkey": pubkey,
      "targets": targets,
    }..removeWhere((key, value) => value == null);