Cork.fromProto constructor

Cork.fromProto(
  1. Cork proto
)

Implementation

factory Cork.fromProto(proto.Cork proto) => Cork._(
      id: Uint8List.fromList(proto.id),
      keyId: Uint8List.fromList(proto.keyId),
      bearer: proto.hasBearer() ? SignedBearer.fromProto(proto.bearer) : null,
      caveats: [
        for (final caveat in proto.caveats) SignedCaveat.fromProto(caveat),
      ],
      signature: Uint8List.fromList(proto.signature),
    );