prepareCertificate property

  1. @JsonKey(includeFromJson: false, includeToJson: false)
(String Function(String certificate)?) prepareCertificate
final

A function to prepare the loaded certificate before building SPC data and passing it into the system. This is needed if the server responds with anything else than the certificate, e.g. if the certificate is wrapped into a JSON object. The server response for the certificate request is passed as parameter “as is”.

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

Implementation

@JsonKey(includeFromJson: false, includeToJson: false)
final String Function(String certificate)? prepareCertificate;