prepareMessage property

  1. @JsonKey(includeFromJson: false, includeToJson: false)
(String Function(String spcData, String assetId)?) prepareMessage
final

A function to prepare the SPC data which is sent as the body of the POST license request. As many DRM providers expect different, vendor-specific messages, this can be done using this user-defined function.

Note that both the passed spcData and the returned processed SPC data are expected to be a Base64 encoded String.

Implementation

@JsonKey(includeFromJson: false, includeToJson: false)
final String Function(String spcData, String assetId)? prepareMessage;