Cork constructor

Cork({
  1. List<int>? id,
  2. Any? issuer,
  3. Any? bearer,
  4. Any? audience,
  5. Any? claims,
  6. Iterable<Any>? caveats,
  7. List<int>? signature,
})

Implementation

factory Cork({
  $core.List<$core.int>? id,
  $6.Any? issuer,
  $6.Any? bearer,
  $6.Any? audience,
  $6.Any? claims,
  $core.Iterable<$6.Any>? caveats,
  $core.List<$core.int>? signature,
}) {
  final $result = create();
  if (id != null) {
    $result.id = id;
  }
  if (issuer != null) {
    $result.issuer = issuer;
  }
  if (bearer != null) {
    $result.bearer = bearer;
  }
  if (audience != null) {
    $result.audience = audience;
  }
  if (claims != null) {
    $result.claims = claims;
  }
  if (caveats != null) {
    $result.caveats.addAll(caveats);
  }
  if (signature != null) {
    $result.signature = signature;
  }
  return $result;
}