JoseRecipient constructor

JoseRecipient({
  1. required List<int> data,
  2. JsonObject? protectedHeader,
  3. JsonObject? unprotectedHeader,
})

Implementation

JoseRecipient(
    {required this.data, this.protectedHeader, this.unprotectedHeader})
    : header = JoseHeader.fromJson(safeUnion(
          [protectedHeader?.toJson(), unprotectedHeader?.toJson()]));